Make Basis Universal import quiet unless engine is in verbose mode

This makes Basis Universal stdout match other compression modes.
This commit is contained in:
Hugo Locurcio 2024-06-22 00:34:53 +02:00
parent 8a6c1e8f52
commit ec97372f04
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C

View File

@ -65,6 +65,12 @@ Vector<uint8_t> basis_universal_packer(const Ref<Image> &p_image, Image::UsedCha
params.m_multithreading = true;
params.m_check_for_alpha = false;
if (!OS::get_singleton()->is_stdout_verbose()) {
params.m_print_stats = false;
params.m_compute_stats = false;
params.m_status_output = false;
}
basisu::job_pool job_pool(OS::get_singleton()->get_processor_count());
params.m_pJob_pool = &job_pool;