From 09eae003400ae15fdde7e982e3a6dc9e852bbed4 Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Wed, 21 Apr 2021 21:42:52 +0200 Subject: [PATCH] fix removeIntersectObject --- src/meshes/Mesh.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()