From e6f85035894ef94c8a3fe873a712d1fdae649cc7 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 19 Feb 2023 18:17:11 +0100 Subject: [PATCH] radiant: do not hide materials using notex textures, only notex materials Materials using notex textures are likely valid materials with image misssing or with unknown image format, they should be listed. --- radiant/texwindow.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/radiant/texwindow.cpp b/radiant/texwindow.cpp index 18311b40..a1c395cf 100644 --- a/radiant/texwindow.cpp +++ b/radiant/texwindow.cpp @@ -151,9 +151,6 @@ void TextureGroups_addShader( TextureGroups& groups, const char* shaderName ){ if ( isNotex( shaderName ) ) { return; } - if ( isNotex( texture ) ) { - return; - } } if ( texture != shaderName ) { @@ -538,9 +535,6 @@ bool Texture_IsShown( IShader* shader, bool show_shaders, bool hideUnused ){ if ( isNotex( shader->getName() ) ) { return false; } - if ( isNotex( shader->getTexture()->name ) ) { - return false; - } } if ( g_TextureBrowser_currentDirectory == "Untagged" ) { -- 2.39.2