(98a962701) Close the save/load dialogs when leaving the sub editor. Otherwise they'll still be visible when re-entering the editor, and saving at that point will overwrite the previously loaded sub with an empty one. Closes #1357

This commit is contained in:
Joonas Rikkonen
2019-03-27 11:31:30 +02:00
parent 26a3f866ee
commit fd56875e95

View File

@@ -564,6 +564,9 @@ namespace Barotrauma
MapEntityPrefab.Selected = null;
saveFrame = null;
loadFrame = null;
MapEntity.DeselectAll();
MapEntity.SelectionGroups.Clear();