From: Thomas Debesse Date: Sun, 19 Feb 2023 17:17:11 +0000 (+0100) Subject: radiant: do not hide materials using notex textures, only notex materials X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=e6f85035894ef94c8a3fe873a712d1fdae649cc7 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. --- 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" ) {