From 932741b74d811f546ad8d6102b1967eee13348c9 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 10 Nov 2017 10:14:25 +0100 Subject: [PATCH] fix parent scene --- src/game-lib-d3-scene.js | 4 ++++ 1 file changed, 4 insertions(+) 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) );