summaryrefslogtreecommitdiff
path: root/tools/editor/resources_dock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/resources_dock.cpp')
-rw-r--r--tools/editor/resources_dock.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/resources_dock.cpp b/tools/editor/resources_dock.cpp
index eb2e526d71..a05fe425b3 100644
--- a/tools/editor/resources_dock.cpp
+++ b/tools/editor/resources_dock.cpp
@@ -158,7 +158,7 @@ void ResourcesDock::save_resource(const String& p_path,const Ref<Resource>& p_re
flg|=ResourceSaver::FLAG_RELATIVE_PATHS;
String path = Globals::get_singleton()->localize_path(p_path);
- Error err = ResourceSaver::save(path,p_resource,flg);
+ Error err = ResourceSaver::save(path,p_resource,flg|ResourceSaver::FLAG_REPLACE_SUBRESOURCE_PATHS);
if (err!=OK) {
accept->set_text("Error saving resource!");
@@ -224,6 +224,7 @@ void ResourcesDock::_file_action(const String& p_path) {
save_resource(p_path,res);
+ _update_name(ti);
} break;