diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2024-06-22 00:34:53 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2024-06-22 00:34:53 +0200 |
commit | ec97372f04fe984583b325da43ff5757138a16f8 (patch) | |
tree | cf27368e80f48920af3f33a54a3df783e2676b61 /modules/basis_universal | |
parent | 8a6c1e8f5232ff3b3a5eac024d590e7479b29e90 (diff) | |
download | redot-engine-ec97372f04fe984583b325da43ff5757138a16f8.tar.gz |
Make Basis Universal import quiet unless engine is in verbose mode
This makes Basis Universal stdout match other compression modes.
Diffstat (limited to 'modules/basis_universal')
-rw-r--r-- | modules/basis_universal/image_compress_basisu.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/basis_universal/image_compress_basisu.cpp b/modules/basis_universal/image_compress_basisu.cpp index d8ef1c0414..216fa6c9a2 100644 --- a/modules/basis_universal/image_compress_basisu.cpp +++ b/modules/basis_universal/image_compress_basisu.cpp @@ -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; |