diff --git a/src/meshes/Mesh.ts b/src/meshes/Mesh.ts index 67cc021..6472475 100644 --- a/src/meshes/Mesh.ts +++ b/src/meshes/Mesh.ts @@ -91,7 +91,7 @@ const Mesh = defineComponent({ }, unmounted() { if (this.mesh) { - this.three?.removeIntersectObject(this.mesh) + this.renderer.three?.removeIntersectObject(this.mesh) } // for predefined mesh (geometry is not unmounted) if (this.geometry) this.geometry.dispose()