scene.removeMesh does not update inspector

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?

it looks like it is working here: Babylon.js Playground could you provide a repro in the playground ?

1 Like

Hello @Anupam_Das just checking in, are you still having issues?