Browse Source

Small tweak

Gary Hsu 7 năm trước cách đây
mục cha
commit
2548c94a4a
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  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;
+                }
             }
         }
     });