1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Merge pull request #78827 from Rindbee/fix-history-mismatch

Fix history mismatch
This commit is contained in:
Yuri Sizov
2023-07-26 18:39:32 +02:00
2 changed files with 5 additions and 2 deletions

View File

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