aframevr / aframe-inspector

:mag: Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
https://aframe.io/aframe-inspector/examples/
MIT License
654 stars 201 forks source link

Outline of object remains even after deleting it #425

Closed vershwal closed 7 years ago

vershwal commented 7 years ago

I came across this issue while browsing. In the example page, if we delete the biggest box, its outline seems to remain there and is clickable.

screenshot from 2017-02-06 16-31-48 screenshot from 2017-02-06 16-32-02 screenshot from 2017-02-06 16-32-22 screenshot from 2017-02-06 16-32-33

This doesn't happen for other objects though.

vershwal commented 7 years ago

I think this is related to 'objectremoved' event never being called. The event handler can be found here.

However, this event doesn't seem to be emitted when an object is deleted.

Hence the objects array still contains the mesh and computes it here

Am I right @fernandojsg ?