Browse Source

fixed scene undefined issue

Adam Bowman 7 năm trước cách đây
mục cha
commit
0221e73305
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
         }