diff --git a/src/game-lib-d3-scene.js b/src/game-lib-d3-scene.js index 47df724..aad8977 100644 --- a/src/game-lib-d3-scene.js +++ b/src/game-lib-d3-scene.js @@ -194,6 +194,8 @@ GameLib.D3.Scene.prototype.createInstance = function() { this.instance.add(mesh.instance); + mesh.parentScene = this; + }.bind(this) ); @@ -211,6 +213,8 @@ GameLib.D3.Scene.prototype.createInstance = function() { this.instance.add(light.instance); + light.parentScene = this; + }.bind(this) );