You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Fix history mismatch
Set the properties of the resource's proxy instead of setting the resource's properties directly. (For action "Set ...") Update the path of the edited scene when saving the scene. (For action "Add atlas source")
This commit is contained in:
@@ -1982,6 +1982,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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user