Gary Hsu hace 7 años
padre
commit
2548c94a4a
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  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;
+                }
             }
         }
     });