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
If the viewers ScreenSpaceEventHandler has been destroyed prior to the viewer being destroyed, unminifed cesiumjs is throwing a developer error: The object is destroyed...
The viewers destroy method is not checking if the handler has been destroyed prior to using it, like it is for other fields:
Happy to create a PR or remove the issue if it is desired behaviour. Although it does look like the viewer is only removing two input actions and not actually destroying the handler:
@TJPovey Thanks for the report! Though I think there was an underlying assumption that the screenSpaceEventHandler wouldn't be destroyed separately, I don't see why a simple verification in the destroy method would hurt.
Sandcastle example:
https://sandcastle.cesium.com/#c=hVA9a8MwEP0rhztYhiDTuY4ppIUOgQ6BTl4U6ZqKyJIrnRzc0v9eOUogoYFqu/dx7+mks4Fg1HhAD0uweIAVBh17/nbEWFfI47xyloS26LuieuhsZ7OHB+kR7WYQEp9HtPQirDIJVxjIu4llsXIy9onlnxH9tEGDkpxn5d1JlsPKiguljmvWOhCmNFZKo+W+XACrYNnCd2cBZCrtDHLjduyfGjo85QRUrJq7wOmzVwV/cstiUTSBJoPtrJvfo+4H5wmiN4zzmrAfjCAM9TbKPRKXIeSlAE19aW2UHkGr5Y3zgTQihMS8R2M2+gu7om3qpP9jNU4obXevI3ojpln2cd+uM8g5b+o03naSc2YrUtiZ2UYiZzN5dfMkOV0IMtDUWXt2Xuz/BQ
If the viewers ScreenSpaceEventHandler has been destroyed prior to the viewer being destroyed, unminifed cesiumjs is throwing a developer error:
The object is destroyed...
The viewers destroy method is not checking if the handler has been destroyed prior to using it, like it is for other fields:
cesium/Source/Widgets/Viewer/Viewer.js
Line 1681 in 51f3c65
Happy to create a PR or remove the issue if it is desired behaviour. Although it does look like the viewer is only removing two input actions and not actually destroying the handler:
The text was updated successfully, but these errors were encountered: