]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
radiant: do not hide materials using notex textures, only notex materials
authorThomas Debesse <dev@illwieckz.net>
Sun, 19 Feb 2023 17:17:11 +0000 (18:17 +0100)
committerThomas Debesse <dev@illwieckz.net>
Sun, 19 Feb 2023 17:17:11 +0000 (18:17 +0100)
Materials using notex textures are likely
valid materials with image misssing or
with unknown image format, they should
be listed.

radiant/texwindow.cpp

index 18311b40262299d04c2553168b2f1071d9b14da1..a1c395cf98641127d2f8ce14fc2648ba9195db9e 100644 (file)
@@ -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" ) {