mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 12:01:10 +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 = name;
|
||||||
strTemp.MakeLower();
|
strTemp.MakeLower();
|
||||||
|
|
||||||
|
// avoid effect textures for Q3 texture sets
|
||||||
if ( strTemp.Find( ".specular" ) >= 0 ||
|
if ( strTemp.Find( ".specular" ) >= 0 ||
|
||||||
strTemp.Find( ".glow" ) >= 0 ||
|
strTemp.Find( ".glow" ) >= 0 ||
|
||||||
strTemp.Find( ".bump" ) >= 0 ||
|
strTemp.Find( ".bump" ) >= 0 ||
|
||||||
|
@ -774,6 +775,15 @@ void Texture_ShowDirectory(){
|
||||||
continue;
|
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
|
// avoid ever loading a texture name with spaces
|
||||||
if ( strTemp.Find( " " ) >= 0 ) {
|
if ( strTemp.Find( " " ) >= 0 ) {
|
||||||
Sys_FPrintf( SYS_WRN, "WARNING: Skipping texture name with spaces [%s]\n", strTemp.GetBuffer() );
|
Sys_FPrintf( SYS_WRN, "WARNING: Skipping texture name with spaces [%s]\n", strTemp.GetBuffer() );
|
||||||
|
|
Loading…
Reference in a new issue