From 1da38e48845d2e079ee7c419442938c2c2eba06e Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Sat, 3 Apr 2021 02:25:35 +0200 Subject: [PATCH] remove unneeded material dispose --- src/meshes/Mesh.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/meshes/Mesh.js b/src/meshes/Mesh.js index 74eaf60..b07ce6b 100644 --- a/src/meshes/Mesh.js +++ b/src/meshes/Mesh.js @@ -77,9 +77,8 @@ export default { if (this.mesh) { this.three.removeIntersectObject(this.mesh); } - // for predefined mesh (geometry and material are not unmounted) + // for predefined mesh (geometry is not unmounted) if (this.geometry) this.geometry.dispose(); - if (this.material) this.material.dispose(); }, __hmrId: 'Mesh', };