You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an entity with an ellipsoid with a dynamic radius. Trying to change it to an ellipse at run-time crashes because the geometry updater expects the entity to always be defined.
This works fine if the ellipsoid is not dynamic. This seems to be a problem with all dynamic entities. Originally, when I asked why CesiumJS was designed to have one abstract "entity" with properties for each geometry type, instead of just creating new PolygonEntity(), the reason was that an Entity can be one shape, multiple shapes at the same time, or different shapes across time.
So I think it makes sense to consider this a bug, that you can't get rid of dynamic entities by setting them to undefined.
The text was updated successfully, but these errors were encountered:
The check happens at a higher level once the definition of the entity changes, so DynamicEllipsoidGeometryUpdater.update should never even be called. That's what the bug is here, the updated isn't properly going away when the ellipsoid gets set to undefined.
I triaged it and there's definitely a bug in the entity heuristics that thinks the geometry is still dynamic after it is nulled out. Should be an easy fix once we find the root cause (it's almost certainly in the centralized code that manages all updaters so fixing it for one will fix it for all)
This came up in this forum thread.
This is an entity with an ellipsoid with a dynamic radius. Trying to change it to an ellipse at run-time crashes because the geometry updater expects the entity to always be defined.
Sandcastle link.
This works fine if the ellipsoid is not dynamic. This seems to be a problem with all dynamic entities. Originally, when I asked why CesiumJS was designed to have one abstract "entity" with properties for each geometry type, instead of just creating
new PolygonEntity()
, the reason was that an Entity can be one shape, multiple shapes at the same time, or different shapes across time.So I think it makes sense to consider this a bug, that you can't get rid of dynamic entities by setting them to undefined.
The text was updated successfully, but these errors were encountered: