David Catuhe 4 years ago
parent
commit
c0c18b3704
1 changed files with 2 additions and 0 deletions
  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