Skip to content

Commit

Permalink
Emit reimport signal in reimport_file_with_custom_parameters
Browse files Browse the repository at this point in the history
method to fix resources not updating when reimported from the
advanced import menu.
  • Loading branch information
SaracenOne committed Feb 9, 2023
1 parent 5c1295d commit 27f8da7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions editor/editor_file_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 27f8da7

Please sign in to comment.