1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

remove unneeded material dispose

This commit is contained in:
Kevin Levron 2021-04-03 02:25:35 +02:00
parent ed985ed652
commit 1da38e4884

View File

@ -77,9 +77,8 @@ export default {
if (this.mesh) { if (this.mesh) {
this.three.removeIntersectObject(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.geometry) this.geometry.dispose();
if (this.material) this.material.dispose();
}, },
__hmrId: 'Mesh', __hmrId: 'Mesh',
}; };