From: divverent Date: Sun, 24 May 2009 18:17:41 +0000 (+0000) Subject: add more ignore patterns X-Git-Tag: svn-r421~43 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=cba6ca95038bec6614c93d0bfdcbbb1f4214db05;hp=c2c3a2ed3dee8cf31d64cb8b8cf49931b0c07953 add more ignore patterns git-svn-id: svn://svn.icculus.org/netradiant/trunk@377 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/radiant/texwindow.cpp b/radiant/texwindow.cpp index efbbaca8..6070f8db 100644 --- a/radiant/texwindow.cpp +++ b/radiant/texwindow.cpp @@ -690,12 +690,20 @@ bool texture_name_ignore(const char* name) StringOutputStream strTemp(string_length(name)); strTemp << LowerCase(name); - return strstr(strTemp.c_str(), ".specular") != 0 || - strstr(strTemp.c_str(), ".glow") != 0 || - strstr(strTemp.c_str(), ".bump") != 0 || - strstr(strTemp.c_str(), ".diffuse") != 0 || - strstr(strTemp.c_str(), ".blend") != 0 || - strstr(strTemp.c_str(), ".alpha") != 0; + return + strstr(strTemp.c_str(), ".specular.") != 0 || + strstr(strTemp.c_str(), ".glow.") != 0 || + strstr(strTemp.c_str(), ".bump.") != 0 || + strstr(strTemp.c_str(), ".diffuse.") != 0 || + strstr(strTemp.c_str(), ".blend.") != 0 || + strstr(strTemp.c_str(), ".alpha.") != 0 || + strstr(strTemp.c_str(), "_norm.") != 0 || + strstr(strTemp.c_str(), "_bump.") != 0 || + strstr(strTemp.c_str(), "_glow.") != 0 || + strstr(strTemp.c_str(), "_gloss.") != 0 || + strstr(strTemp.c_str(), "_pants.") != 0 || + strstr(strTemp.c_str(), "_shirt.") != 0 || + 0; } class LoadShaderVisitor : public Archive::Visitor