summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-02-13 19:18:03 +0100
committerkobewi <kobewi4e@gmail.com>2023-02-13 19:18:03 +0100
commit0c71c443efe5e06e66d7cccfa2095e47a4715db0 (patch)
treebf5ac98b6354858b015d732d9be874a7c425ea69 /editor
parent381590311958ab00251639af6d7efc6934dd3c72 (diff)
Fix corrupt undo after making sub-resources unique
Diffstat (limited to 'editor')
-rw-r--r--editor/inspector_dock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/inspector_dock.cpp b/editor/inspector_dock.cpp
index 52482ecb16..ab061c4d5c 100644
--- a/editor/inspector_dock.cpp
+++ b/editor/inspector_dock.cpp
@@ -186,7 +186,7 @@ void InspectorDock::_menu_option_confirm(int p_option, bool p_confirmed) {
}
}
- int history_id = EditorUndoRedoManager::get_singleton()->get_history_for_object(current).id;
+ int history_id = EditorUndoRedoManager::get_singleton()->get_history_id_for_object(current);
EditorUndoRedoManager::get_singleton()->clear_history(true, history_id);
EditorNode::get_singleton()->edit_item(current, inspector);