fix parent scene

beta.r3js.org
-=yb4f310 2017-11-10 10:14:25 +01:00
parent ff2fd4651c
commit 932741b74d
1 changed files with 4 additions and 0 deletions

View File

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