فهرست منبع

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

David Catuhe 6 سال پیش
والد
کامیت
e80d2e57c4
2فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 4 0
      Playground/js/main.js
  2. 1 1
      Playground/js/settingsPG.js

+ 4 - 0
Playground/js/main.js

@@ -631,6 +631,10 @@ class Main {
         this.parent.monacoCreator.JsEditor.focus();
     };
 
+    compileAndRunFromOutside() {
+        compileAndRun(this.parent, this.fpsLabel);
+    };
+
     checkSafeMode(message) {
         if (document.getElementById("safemodeToggle" + this.parent.utils.getCurrentSize()) &&
             document.getElementById("safemodeToggle" + this.parent.utils.getCurrentSize()).classList.contains('checked')) {

+ 1 - 1
Playground/js/settingsPG.js

@@ -163,7 +163,7 @@ class SettingsPG {
                 localStorage.removeItem("bjs-playground-apiversion");
                 localStorage.removeItem("bjs-playground-apiversion-tempcode");
 
-                this.parent.main.compileAndRun();
+                this.parent.main.compileAndRunFromOutside();
             }.bind(this);
 
             document.head.appendChild(newBJSscript);