mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Skip glow, heightmap, normalmap and specularmap files for Q4 texture sets.
This commit is contained in:
parent
73b5b0dca7
commit
2beef62683
1 changed files with 10 additions and 0 deletions
|
@ -765,6 +765,7 @@ void Texture_ShowDirectory(){
|
|||
strTemp = name;
|
||||
strTemp.MakeLower();
|
||||
|
||||
// avoid effect textures for Q3 texture sets
|
||||
if ( strTemp.Find( ".specular" ) >= 0 ||
|
||||
strTemp.Find( ".glow" ) >= 0 ||
|
||||
strTemp.Find( ".bump" ) >= 0 ||
|
||||
|
@ -774,6 +775,15 @@ void Texture_ShowDirectory(){
|
|||
continue;
|
||||
}
|
||||
|
||||
// avoid glow, heightmap, normalmap and specular maps for Q4 texture sets
|
||||
if ( g_str_has_suffix( name, "_g" ) ||
|
||||
g_str_has_suffix( name, "_h" ) ||
|
||||
g_str_has_suffix( name, "_local" ) ||
|
||||
g_str_has_suffix( name, "_nm" ) ||
|
||||
g_str_has_suffix( name, "_s" )) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// avoid ever loading a texture name with spaces
|
||||
if ( strTemp.Find( " " ) >= 0 ) {
|
||||
Sys_FPrintf( SYS_WRN, "WARNING: Skipping texture name with spaces [%s]\n", strTemp.GetBuffer() );
|
||||
|
|
Loading…
Reference in a new issue