adspartan : ui: texturing gui: don't show _h textures in the texture palette

785cec2678

+ show textures without specular by default
This commit is contained in:
T1ti
2024-08-30 22:55:50 +02:00
parent 8336c2367b
commit 0d50dddd15

View File

@@ -104,6 +104,7 @@ namespace Noggit
if ( entry.find ("tileset") != std::string::npos if ( entry.find ("tileset") != std::string::npos
&& entry.find (".blp") != std::string::npos && entry.find (".blp") != std::string::npos
&& entry.find("_h.blp") == std::string::npos // skip _h textures
) )
{ {
auto suffix_pos (entry.find ("_s.blp")); auto suffix_pos (entry.find ("_s.blp"));
@@ -172,7 +173,7 @@ namespace Noggit
specular_filter->setFilterRegExp (on ? "true" : ""); specular_filter->setFilterRegExp (on ? "true" : "");
} }
); );
only_specular->setChecked (true); only_specular->setChecked (false);