diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-20 15:41:00 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-20 15:41:00 +0100 |
commit | 3e0a989bd1c3e592f23b49bc824441b038d862c6 (patch) | |
tree | 6135893417bd53fb35e424dbac65ce0db0e82b90 | |
parent | 02e5da2cc563414d31f0bb7b40eeac5effe25053 (diff) | |
parent | 0c71c443efe5e06e66d7cccfa2095e47a4715db0 (diff) |
Merge pull request #73237 from KoBeWi/did_you_know_that_the_maximum_branch_name_length_is_250_bytes❔_this_means_that_this_branch's_diff_could_probably_fit_into_its_name,_because_it's_so_ridiculously_small._Why_are_you_reading_this_btw❔
Fix corrupt undo after making sub-resources unique
-rw-r--r-- | editor/inspector_dock.cpp | 2 |
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); |