summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-07-17 11:09:34 +0200
committerGitHub <noreply@github.com>2019-07-17 11:09:34 +0200
commit96cbbffac76bd6b8c9467153c10c8e87626cccb9 (patch)
treedf3353ab850df6ba2ac28e73c1b873833dc0efec
parentc59c2871a220f7251b9cb3ba5a59535f8a20bd1e (diff)
parent2350af5e703346384a53f988472df3c13c21da5a (diff)
Merge pull request #30608 from sparkart/fix-script-not-clearing-when-renamed
Fix losing scene modifications when renaming file
-rw-r--r--editor/filesystem_dock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index 947d96f897..8e332ad20e 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -1298,7 +1298,7 @@ void FileSystemDock::_rename_operation_confirm() {
_try_move_item(to_rename, new_path, file_renames, folder_renames);
int current_tab = editor->get_current_tab();
-
+ _save_scenes_after_move(file_renames); // save scenes before updating
_update_dependencies_after_move(file_renames);
_update_resource_paths_after_move(file_renames);
_update_project_settings_after_move(file_renames);
@@ -1407,7 +1407,7 @@ void FileSystemDock::_move_operation_confirm(const String &p_to_path, bool overw
if (is_moved) {
int current_tab = editor->get_current_tab();
-
+ _save_scenes_after_move(file_renames); //save scenes before updating
_update_dependencies_after_move(file_renames);
_update_resource_paths_after_move(file_renames);
_update_project_settings_after_move(file_renames);