Des:
When I use Object3D.traverse
to traverse object in the scene and remove it, I get an error:
Code
scene.traverse((item) => {
if (item.isMesh) {
this.meshes.remove(item);
item.geometry.dispose();
item.material.dispose();
}
});