From ec97372f04fe984583b325da43ff5757138a16f8 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 22 Jun 2024 00:34:53 +0200 Subject: [PATCH] Make Basis Universal import quiet unless engine is in verbose mode This makes Basis Universal stdout match other compression modes. --- modules/basis_universal/image_compress_basisu.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/basis_universal/image_compress_basisu.cpp b/modules/basis_universal/image_compress_basisu.cpp index d8ef1c04148..216fa6c9a2b 100644 --- a/modules/basis_universal/image_compress_basisu.cpp +++ b/modules/basis_universal/image_compress_basisu.cpp @@ -65,6 +65,12 @@ Vector basis_universal_packer(const Ref &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;