mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
Fix compilation issues on mac
This commit is contained in:
parent
8941741508
commit
9a8dc6ca5d
2 changed files with 3 additions and 4 deletions
|
@ -35,9 +35,9 @@ public:
|
|||
};
|
||||
|
||||
static Version evalVersionFromID(ID id) {
|
||||
if (ID <= 0) {
|
||||
if (id <= 0) {
|
||||
return DRAFT;
|
||||
} else (ID > 0) {
|
||||
} else {
|
||||
return FINAL;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue