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
When you run the app, you'll get a crash because viewer.zoomTo ends up calling viewBoundingSphere during the morph. We need to detect that the morph is in process and wait for it to complete before zooming.
Here's the callstack.
DeveloperError: viewBoundingSphere is not supported while morphing.
Error
at DeveloperError (http://localhost:8080/Source/Core/DeveloperError.js:43:13)
at Camera.prototype.viewBoundingSphere (http://localhost:8080/Source/Scene/Camera.js:2372:13)
at updateZoomTarget (http://localhost:8080/Source/Widgets/Viewer/Viewer.js:1584:13)
at Viewer.prototype._postRender (http://localhost:8080/Source/Widgets/Viewer/Viewer.js:1546:9)
at Event.prototype.raiseEvent (http://localhost:8080/Source/Core/Event.js:146:17)
at render (http://localhost:8080/Source/Scene/Scene.js:1432:9)
at Scene.prototype.render (http://localhost:8080/Source/Scene/Scene.js:1440:13)
at CesiumWidget.prototype.render (http://localhost:8080/Source/Widgets/CesiumWidget/CesiumWidget.js:650:13)
at render (http://localhost:8080/Source/Widgets/CesiumWidget/CesiumWidget.js:68:25)
The text was updated successfully, but these errors were encountered:
If viewer.zoomTo found itself in the middle of a morph it would crash. We
now wait for the morph to complete. I couldn't think of a good unit for
this because it's a race condition, but there are instructions in the linked
issue on reproducing it in Sandcastle. Fixes#2680
viewer.scene.morphTo2D();
to the bottom.When you run the app, you'll get a crash because
viewer.zoomTo
ends up callingviewBoundingSphere
during the morph. We need to detect that the morph is in process and wait for it to complete before zooming.Here's the callstack.
The text was updated successfully, but these errors were encountered: