浏览代码

fixed scene undefined issue

Adam Bowman 7 年之前
父节点
当前提交
0221e73305
共有 1 个文件被更改,包括 1 次插入1 次删除
  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();
         }