diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-10 15:07:07 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-10 15:07:07 +0100 |
commit | fd55321da94d3274cafad63a16d9d36d46409e64 (patch) | |
tree | 1bd437a698833f45c4604f9780710e0615580dae | |
parent | 7a68530bf36a03fd90abcfae2061943d4852c677 (diff) | |
parent | 27f8da74938158aa4dfad9b01fd0b06db1276b06 (diff) |
Merge pull request #73001 from SaracenOne/update_on_advanced_reimport
Emit reimport signal in reimport_file_with_custom_parameters method
-rw-r--r-- | editor/editor_file_system.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index ec1ef8a6bc..88831e0c33 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -2167,6 +2167,11 @@ void EditorFileSystem::_find_group_files(EditorFileSystemDirectory *efd, HashMap void EditorFileSystem::reimport_file_with_custom_parameters(const String &p_file, const String &p_importer, const HashMap<StringName, Variant> &p_custom_params) { _reimport_file(p_file, p_custom_params, p_importer); + + // 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); } void EditorFileSystem::_reimport_thread(uint32_t p_index, ImportThreadData *p_import_data) { |