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

fix removeIntersectObject

This commit is contained in:
Kevin Levron 2021-04-21 21:42:52 +02:00
parent 3ccf67d7b1
commit 09eae00340

View File

@ -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()