diff --git a/editor/import/resource_importer_texture.cpp b/editor/import/resource_importer_texture.cpp index 39a71d113d3..2464d5aee9b 100644 --- a/editor/import/resource_importer_texture.cpp +++ b/editor/import/resource_importer_texture.cpp @@ -82,11 +82,6 @@ void ResourceImporterTexture::_texture_reimport_normal(const Refmake_flags[path].flags |= MAKE_NORMAL_FLAG; } -inline void ResourceImporterTexture::_print_callback_message(const String &p_message) { - EditorToaster::get_singleton()->popup_str(p_message); - print_line(p_message); -} - void ResourceImporterTexture::update_imports() { if (EditorFileSystem::get_singleton()->is_scanning() || EditorFileSystem::get_singleton()->is_importing()) { return; // Don't update when EditorFileSystem is doing something else. @@ -110,7 +105,7 @@ void ResourceImporterTexture::update_imports() { bool changed = false; if (E.value.flags & MAKE_NORMAL_FLAG && int(cf->get_value("params", "compress/normal_map")) == 0) { - _print_callback_message( + print_line( vformat(TTR("%s: Texture detected as used as a normal map in 3D. Enabling red-green texture compression to reduce memory usage (blue channel is discarded)."), String(E.key))); @@ -119,7 +114,7 @@ void ResourceImporterTexture::update_imports() { } if (E.value.flags & MAKE_ROUGHNESS_FLAG && int(cf->get_value("params", "roughness/mode")) == 0) { - _print_callback_message( + print_line( vformat(TTR("%s: Texture detected as used as a roughness map in 3D. Enabling roughness limiter based on the detected associated normal map at %s."), String(E.key), E.value.normal_path_for_roughness)); @@ -144,7 +139,7 @@ void ResourceImporterTexture::update_imports() { compress_string = "Basis Universal"; } - _print_callback_message( + print_line( vformat(TTR("%s: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to %s."), String(E.key), compress_string)); diff --git a/editor/import/resource_importer_texture.h b/editor/import/resource_importer_texture.h index ebe53efa94e..d1f3ef23ee2 100644 --- a/editor/import/resource_importer_texture.h +++ b/editor/import/resource_importer_texture.h @@ -78,7 +78,6 @@ protected: static inline void _clamp_hdr_exposure(Ref &r_image); static inline void _invert_y_channel(Ref &r_image); - static inline void _print_callback_message(const String &p_message); public: static void save_to_ctex_format(Ref f, const Ref &p_image, CompressMode p_compress_mode, Image::UsedChannels p_channels, Image::CompressMode p_compress_format, float p_lossy_quality);