when I perform a scene.removeMesh(mesh,true); I still see the mesh in the inspector. and when I do a scene.addMesh with the same mesh, I see a duplicate of that mesh in the inspector.
i have tried scene.debugLayer.setAsActiveScene() but this does not seem to do anything…
From a memory and performance aspect this seems to have no impact since we are dealing with the same mesh in memory. However from a UX standpoint we want the inspector to represent only the meshes currently in the scene.
Any thoughts into what is happening. Do I need to refresh the inspector after removing the mesh somehow?