소스 검색

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();
         }