From 27f8da74938158aa4dfad9b01fd0b06db1276b06 Mon Sep 17 00:00:00 2001 From: SaracenOne Date: Thu, 9 Feb 2023 22:24:08 +0000 Subject: [PATCH] Emit reimport signal in reimport_file_with_custom_parameters method to fix resources not updating when reimported from the advanced import menu. --- editor/editor_file_system.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index ec1ef8a6bc0..88831e0c33d 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 &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 reloads; + reloads.append(p_file); + emit_signal(SNAME("resources_reimported"), reloads); } void EditorFileSystem::_reimport_thread(uint32_t p_index, ImportThreadData *p_import_data) {