mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
fix removeIntersectObject
This commit is contained in:
parent
3ccf67d7b1
commit
09eae00340
@ -91,7 +91,7 @@ const Mesh = defineComponent({
|
|||||||
},
|
},
|
||||||
unmounted() {
|
unmounted() {
|
||||||
if (this.mesh) {
|
if (this.mesh) {
|
||||||
this.three?.removeIntersectObject(this.mesh)
|
this.renderer.three?.removeIntersectObject(this.mesh)
|
||||||
}
|
}
|
||||||
// for predefined mesh (geometry is not unmounted)
|
// for predefined mesh (geometry is not unmounted)
|
||||||
if (this.geometry) this.geometry.dispose()
|
if (this.geometry) this.geometry.dispose()
|
||||||
|
Loading…
Reference in New Issue
Block a user