From 00789cb0d702b6e4540dc039404fab293175b1ea Mon Sep 17 00:00:00 2001 From: nordsoft Date: Sat, 3 Dec 2022 19:52:56 +0400 Subject: [PATCH] Cleanup undo stack for new map --- mapeditor/mapcontroller.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mapeditor/mapcontroller.cpp b/mapeditor/mapcontroller.cpp index d90279691..21eb65384 100644 --- a/mapeditor/mapcontroller.cpp +++ b/mapeditor/mapcontroller.cpp @@ -214,6 +214,7 @@ void MapController::setMap(std::unique_ptr cmap) main->enableRedo(allowRedo); } ); + _map->getEditManager()->getUndoManager().clearAll(); } void MapController::sceneForceUpdate()