We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92c00c1 commit 114b1dfCopy full SHA for 114b1df
src/framework/components/light/component.js
@@ -465,12 +465,16 @@ Object.assign(LightComponent.prototype, {
465
},
466
467
onRemove: function () {
468
+
469
+ // remove from layers
470
+ this.onDisable();
471
472
// destroy light node
473
this.light.destroy();
474
475
// remove cookie asset events
476
this.cookieAsset = null;
477
}
-
478
});
479
480
var _lightProps = _props;
0 commit comments