Browse Source

Cleanup undo stack for new map

nordsoft 2 years ago
parent
commit
00789cb0d7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      mapeditor/mapcontroller.cpp

+ 1 - 0
mapeditor/mapcontroller.cpp

@@ -214,6 +214,7 @@ void MapController::setMap(std::unique_ptr<CMap> cmap)
 			main->enableRedo(allowRedo);
 		}
 	);
+	_map->getEditManager()->getUndoManager().clearAll();
 }
 
 void MapController::sceneForceUpdate()