mirror of
https://github.com/troisjs/trois.git
synced 2024-11-23 20:02:32 +08:00
remove unneeded material dispose
This commit is contained in:
parent
ed985ed652
commit
1da38e4884
@ -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',
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user