Explorar o código

fixed scene undefined issue

Adam Bowman %!s(int64=7) %!d(string=hai) anos
pai
achega
0221e73305
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
         }