Fix compilation issues on mac

This commit is contained in:
samcake 2015-09-19 08:59:47 -07:00
parent 8941741508
commit 9a8dc6ca5d
2 changed files with 3 additions and 4 deletions

View file

@ -35,9 +35,9 @@ public:
};
static Version evalVersionFromID(ID id) {
if (ID <= 0) {
if (id <= 0) {
return DRAFT;
} else (ID > 0) {
} else {
return FINAL;
}
}

View file

@ -1786,8 +1786,7 @@ void NetworkGeometry::setTextureWithNameToURL(const QString& name, const QUrl& u
for (auto&& material : _materials) {
QSharedPointer<NetworkTexture> matchingTexture = QSharedPointer<NetworkTexture>();
if (material->diffuseTextureName == name) {
// TODO: Find a solution to the eye case
material->diffuseTexture = textureCache->getTexture(url, DEFAULT_TEXTURE, /* _geometry->meshes[i].isEye*/ false);
material->diffuseTexture = textureCache->getTexture(url, DEFAULT_TEXTURE);
} else if (material->normalTextureName == name) {
material->normalTexture = textureCache->getTexture(url);
} else if (material->specularTextureName == name) {