Added component edit undo/redo
This commit is contained in:
parent
279801623d
commit
1400033bd0
7 changed files with 50 additions and 1 deletions
|
|
@ -442,7 +442,7 @@ void DrawingProgramLayerManagerGUI::remove_layer(const NetworkingObjects::NetObj
|
|||
undoID(initUndoID)
|
||||
{}
|
||||
std::string get_name() const override {
|
||||
return layerData.layerData ? "Delete Layer Folder" : "Delete Layer";
|
||||
return layerData.folderData ? "Delete Layer Folder" : "Delete Layer";
|
||||
}
|
||||
bool undo(WorldUndoManager& undoMan) override {
|
||||
std::optional<NetworkingObjects::NetObjID> toInsertParentID = undoMan.get_netid_from_undoid(parentUndoID);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue