Gary Hsu 7 anos atrás
pai
commit
2548c94a4a
1 arquivos alterados com 5 adições e 2 exclusões
  1. 5 2
      sandbox/index.js

+ 5 - 2
sandbox/index.js

@@ -269,8 +269,11 @@ if (BABYLON.Engine.isSupported()) {
             }
             else {
                 footer.style.display = "none";
-                currentScene.debugLayer.hide();
-                enableDebugLayer = false;
+                errorZone.style.display = "none";
+                if (enableDebugLayer) {
+                    currentScene.debugLayer.hide();
+                    enableDebugLayer = false;
+                }
             }
         }
     });