Explorar o código

* 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 %!s(int64=4) %!d(string=hai) anos
pai
achega
f6f204a13a

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

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