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
This commit is contained in:
Rémi Verschelde 2023-02-20 15:41:00 +01:00
commit 3e0a989bd1
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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);