Fix for Xcode warnings.

This commit is contained in:
Andrzej Kapolka 2014-02-23 20:11:46 -08:00
parent b0f3ab3ccd
commit f5fece5eb5

View file

@ -52,8 +52,8 @@ bool Model::isLoadedWithTextures() const {
} }
foreach (const NetworkMesh& mesh, _geometry->getMeshes()) { foreach (const NetworkMesh& mesh, _geometry->getMeshes()) {
foreach (const NetworkMeshPart& part, mesh.parts) { foreach (const NetworkMeshPart& part, mesh.parts) {
if (part.diffuseTexture && !part.diffuseTexture->isLoaded() || if ((part.diffuseTexture && !part.diffuseTexture->isLoaded()) ||
part.normalTexture && !part.normalTexture->isLoaded()) { (part.normalTexture && !part.normalTexture->isLoaded())) {
return false; return false;
} }
} }