mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-04 19:24:23 +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) {
|
static Version evalVersionFromID(ID id) {
|
||||||
if (ID <= 0) {
|
if (id <= 0) {
|
||||||
return DRAFT;
|
return DRAFT;
|
||||||
} else (ID > 0) {
|
} else {
|
||||||
return FINAL;
|
return FINAL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1786,8 +1786,7 @@ void NetworkGeometry::setTextureWithNameToURL(const QString& name, const QUrl& u
|
||||||
for (auto&& material : _materials) {
|
for (auto&& material : _materials) {
|
||||||
QSharedPointer<NetworkTexture> matchingTexture = QSharedPointer<NetworkTexture>();
|
QSharedPointer<NetworkTexture> matchingTexture = QSharedPointer<NetworkTexture>();
|
||||||
if (material->diffuseTextureName == name) {
|
if (material->diffuseTextureName == name) {
|
||||||
// TODO: Find a solution to the eye case
|
material->diffuseTexture = textureCache->getTexture(url, DEFAULT_TEXTURE);
|
||||||
material->diffuseTexture = textureCache->getTexture(url, DEFAULT_TEXTURE, /* _geometry->meshes[i].isEye*/ false);
|
|
||||||
} else if (material->normalTextureName == name) {
|
} else if (material->normalTextureName == name) {
|
||||||
material->normalTexture = textureCache->getTexture(url);
|
material->normalTexture = textureCache->getTexture(url);
|
||||||
} else if (material->specularTextureName == name) {
|
} else if (material->specularTextureName == name) {
|
||||||
|
|
Loading…
Reference in a new issue