Parcourir la source

Scene.isReady should return false if scene is disposed

Gary Hsu il y a 7 ans
Parent
commit
2c1e44ac45
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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;
             }