Bläddra i källkod

fixed scene undefined issue

Adam Bowman 7 år sedan
förälder
incheckning
0221e73305
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/babylon.node.ts

+ 1 - 1
src/babylon.node.ts

@@ -95,7 +95,7 @@ module BABYLON {
             this.name = name;
             this.id = name;
             this._scene = scene || Engine.LastCreatedScene;
-            this.uniqueId = scene.getUniqueId();
+            this.uniqueId = this._scene.getUniqueId();
             this._initCache();
         }