瀏覽代碼

Scene.isReady should return false if scene is disposed

Gary Hsu 7 年之前
父節點
當前提交
2c1e44ac45
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/babylon.scene.ts

+ 4 - 0
src/babylon.scene.ts

@@ -1728,6 +1728,10 @@
 
         // Ready
         public isReady(): boolean {
+            if (this._isDisposed) {
+                return false;
+            }
+
             if (this._pendingData.length > 0) {
                 return false;
             }