David Catuhe 4 年之前
父节点
当前提交
c0c18b3704
共有 1 个文件被更改,包括 2 次插入0 次删除
  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