summaryrefslogtreecommitdiffstats
path: root/editor/filesystem_dock.h
diff options
context:
space:
mode:
authorHein-Pieter van Braam-Stewart <hp@tmm.cx>2019-06-04 05:36:23 +0200
committerHein-Pieter van Braam-Stewart <hp@tmm.cx>2019-06-04 16:24:32 +0200
commit0ac7715a27abc9a679f9537cc16ebb7e3d3bfea4 (patch)
tree622a4952d658bec0218ca021e031410562c7c1e2 /editor/filesystem_dock.h
parent774a9fde84a0282c40da1dd891b613ed200ff9a8 (diff)
downloadredot-engine-0ac7715a27abc9a679f9537cc16ebb7e3d3bfea4.tar.gz
Fix moving and renaming files
This commit fixes several issues related to moving scenes and resources in an open project. * Don't try to reload scenes while not all scenes are updated yet. * Don't use the UndoRedo system to update non-user initiated editor state. * Resave scenes after moving files and updating resource path(s).
Diffstat (limited to 'editor/filesystem_dock.h')
-rw-r--r--editor/filesystem_dock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h
index 978235b328..46eaf71a8a 100644
--- a/editor/filesystem_dock.h
+++ b/editor/filesystem_dock.h
@@ -202,6 +202,7 @@ private:
void _try_duplicate_item(const FileOrFolder &p_item, const String &p_new_path) const;
void _update_dependencies_after_move(const Map<String, String> &p_renames) const;
void _update_resource_paths_after_move(const Map<String, String> &p_renames) const;
+ void _save_scenes_after_move(const Map<String, String> &p_renames) const;
void _update_favorites_list_after_move(const Map<String, String> &p_files_renames, const Map<String, String> &p_folders_renames) const;
void _update_project_settings_after_move(const Map<String, String> &p_folders_renames) const;