fix parent scene
parent
ff2fd4651c
commit
932741b74d
|
@ -194,6 +194,8 @@ GameLib.D3.Scene.prototype.createInstance = function() {
|
||||||
|
|
||||||
this.instance.add(mesh.instance);
|
this.instance.add(mesh.instance);
|
||||||
|
|
||||||
|
mesh.parentScene = this;
|
||||||
|
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -211,6 +213,8 @@ GameLib.D3.Scene.prototype.createInstance = function() {
|
||||||
|
|
||||||
this.instance.add(light.instance);
|
this.instance.add(light.instance);
|
||||||
|
|
||||||
|
light.parentScene = this;
|
||||||
|
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue