1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Save opened scenes when necessary

(cherry picked from commit 331f922359)
This commit is contained in:
Tomasz Chabora
2019-04-15 22:17:49 +02:00
committed by Hein-Pieter van Braam-Stewart
parent c7e5b371be
commit a758b329d0
2 changed files with 3 additions and 0 deletions

View File

@@ -988,6 +988,7 @@ void FileSystemDock::_try_move_item(const FileOrFolder &p_item, const String &p_
for (int j = 0; j < ed->get_edited_scene_count(); j++) {
if (ed->get_scene_path(j) == file_changed_paths[i]) {
ed->get_edited_scene_root(j)->set_filename(new_item_path);
editor->save_layout();
break;
}
}