summaryrefslogtreecommitdiffstats
path: root/editor/editor_file_system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_file_system.cpp')
-rw-r--r--editor/editor_file_system.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp
index 807f0c8eb7..d52dd42493 100644
--- a/editor/editor_file_system.cpp
+++ b/editor/editor_file_system.cpp
@@ -257,7 +257,7 @@ void EditorFileSystem::_scan_filesystem() {
if (l.begins_with("::")) {
Vector<String> split = l.split("::");
ERR_CONTINUE(split.size() != 3);
- String name = split[1];
+ const String &name = split[1];
cpath = name;
@@ -290,7 +290,7 @@ void EditorFileSystem::_scan_filesystem() {
if (deps.length()) {
Vector<String> dp = deps.split("<>");
for (int i = 0; i < dp.size(); i++) {
- String path = dp[i];
+ const String &path = dp[i];
fc.deps.push_back(path);
}
}
@@ -2436,7 +2436,13 @@ void EditorFileSystem::reimport_files(const Vector<String> &p_files) {
Error EditorFileSystem::reimport_append(const String &p_file, const HashMap<StringName, Variant> &p_custom_options, const String &p_custom_importer, Variant p_generator_parameters) {
ERR_FAIL_COND_V_MSG(!importing, ERR_INVALID_PARAMETER, "Can only append files to import during a current reimport process.");
- return _reimport_file(p_file, p_custom_options, p_custom_importer, &p_generator_parameters);
+ Error ret = _reimport_file(p_file, p_custom_options, p_custom_importer, &p_generator_parameters);
+
+ // Emit the resource_reimported signal for the single file we just reimported.
+ Vector<String> reloads;
+ reloads.append(p_file);
+ emit_signal(SNAME("resources_reimported"), reloads);
+ return ret;
}
Error EditorFileSystem::_resource_import(const String &p_path) {