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', };