Added component edit undo/redo

This commit is contained in:
Yousef Khadadeh 2026-01-04 17:26:13 +03:00
parent 279801623d
commit 1400033bd0
7 changed files with 50 additions and 1 deletions

View file

@ -92,6 +92,7 @@ void TextBoxTool::commit() {
NetworkingObjects::NetObjOwnerPtr<CanvasComponentContainer>& containerPtr = objInfoBeingEdited->obj;
containerPtr->commit_update(drawP);
containerPtr->send_comp_update(drawP, true);
drawP.layerMan.add_undo_place_component(objInfoBeingEdited);
objInfoBeingEdited = nullptr;
}
}