- 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 ||
+ endswith(strTemp.c_str(), ".specular") ||
+ endswith(strTemp.c_str(), ".glow") ||
+ endswith(strTemp.c_str(), ".bump") ||
+ endswith(strTemp.c_str(), ".diffuse") ||
+ endswith(strTemp.c_str(), ".blend") ||
+ endswith(strTemp.c_str(), ".alpha") ||
+ endswith(strTemp.c_str(), "_norm") ||
+ endswith(strTemp.c_str(), "_bump") ||
+ endswith(strTemp.c_str(), "_glow") ||
+ endswith(strTemp.c_str(), "_gloss") ||
+ endswith(strTemp.c_str(), "_pants") ||
+ endswith(strTemp.c_str(), "_shirt") ||