mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
fix RectAreaLight unmounted
This commit is contained in:
parent
0f0fe659af
commit
89b2d99098
@ -28,8 +28,5 @@ export default defineComponent({
|
|||||||
|
|
||||||
this.initLight();
|
this.initLight();
|
||||||
},
|
},
|
||||||
unmounted() {
|
|
||||||
if (this.lightHelper) this.removeFromParent(this.lightHelper);
|
|
||||||
},
|
|
||||||
__hmrId: 'RectAreaLight',
|
__hmrId: 'RectAreaLight',
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user