Pārlūkot izejas kodu

fixed scene undefined issue

Adam Bowman 7 gadi atpakaļ
vecāks
revīzija
0221e73305
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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();
         }