Merge pull request #78827 from Rindbee/fix-history-mismatch
Fix history mismatch
This commit is contained in:
commit
bc0e646076
2 changed files with 5 additions and 2 deletions
|
|
@ -1984,6 +1984,9 @@ void EditorNode::_dialog_action(String p_file) {
|
|||
|
||||
if (scene_idx != -1) {
|
||||
_discard_changes();
|
||||
} else {
|
||||
// Update the path of the edited scene to ensure later do/undo action history matches.
|
||||
editor_data.set_scene_path(editor_data.get_edited_scene(), p_file);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue