Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing children in the options of creating Entity will override _children #583

Open
i-tengfei opened this issue Feb 22, 2023 · 1 comment
Labels

Comments

@i-tengfei
Copy link

<Entity>
  <PolylineGraphics
    positions={Cartesian3.fromDegreesArrayHeights([-75, 45, 500000, -125, 45, 500000])}
    width={4}
    material={
      new PolylineDashMaterialProperty({
        color: Color.CYAN,
      })
    }
  />
</Entity>

This will override CesiumEntity's internal property _children, which will cause a crash when setting parent or toggling the show property.

I don't know where this problem should be solved, so I also submitted an issue in Cesium.

CesiumGS/cesium#11101

i-tengfei added a commit to i-tengfei/resium that referenced this issue Feb 22, 2023
@rot1024
Copy link
Member

rot1024 commented Mar 14, 2023

I will fix it on the next release.

@rot1024 rot1024 added the bug label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants