Merge pull request #73001 from SaracenOne/update_on_advanced_reimport

Emit reimport signal in reimport_file_with_custom_parameters method
This commit is contained in:
Rémi Verschelde 2023-02-10 15:07:07 +01:00
commit fd55321da9
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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) {