浏览代码

Cleanup undo stack for new map

nordsoft 2 年之前
父节点
当前提交
00789cb0d7
共有 1 个文件被更改,包括 1 次插入0 次删除
  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()