Fixed cache issue on edit undo, and added an edit button for layers

This commit is contained in:
Yousef Khadadeh 2026-01-05 15:19:21 +03:00
parent 6e13c5742e
commit dbec3641d8
5 changed files with 14 additions and 8 deletions

View file

@ -42,7 +42,7 @@ class WorldUndoManager {
private:
void push_undo(std::unique_ptr<WorldUndoAction> undoAction);
void push_redo(std::unique_ptr<WorldUndoAction> undoAction);
constexpr static size_t UNDO_QUEUE_LIMIT = 500;
constexpr static size_t UNDO_QUEUE_LIMIT = 250;
std::unordered_map<UndoObjectID, NetworkingObjects::NetObjID> undoIDToNetID;
std::unordered_map<NetworkingObjects::NetObjID, UndoObjectID> netIDToUndoID;