浏览代码

Fix typo in sandbox

Gary Hsu 7 年之前
父节点
当前提交
1005a83f45
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      sandbox/index.js

+ 2 - 2
sandbox/index.js

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