浏览代码

* BugFix: Correct an error where the GUI editor cannot be opened when going from GUI editor to mission editor (or any other editor).

Robert MacGregor 4 年之前
父节点
当前提交
f6f204a13a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Templates/BaseGame/game/tools/guiEditor/scripts/guiEditor.ed.tscript

+ 2 - 0
Templates/BaseGame/game/tools/guiEditor/scripts/guiEditor.ed.tscript

@@ -121,6 +121,8 @@ function GuiEditor::close(%this)
    if(Canvas.getContent() != GuiEditorGui.getId())
       return;
 
+   $InGuiEditor = false;
+
    GuiGroup.add(GuiEditorGui);
    
    Canvas.setContent(GuiEditor.lastContent);