David Catuhe hace 4 años
padre
commit
c0c18b3704
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      Playground/src/tools/monacoManager.ts

+ 2 - 0
Playground/src/tools/monacoManager.ts

@@ -121,6 +121,8 @@ export class MonacoManager {
     private _setNewContent() {
         this._createEditor();
 
+        this.globalState.currentSnippetToken = "";
+
         if (this.globalState.language === "JS") {
             this._editor?.setValue(`// You have to create a function called createScene. This function must return a BABYLON.Scene object
 // You can reference the following variables: engine, canvas