mirror of
https://github.com/overte-org/overte.git
synced 2025-04-12 14:42:11 +02:00
fix transparent textures on baked assets
(cherry picked from commit b89dbf8346
)
This commit is contained in:
parent
6c15719618
commit
27f1255899
1 changed files with 14 additions and 0 deletions
|
@ -498,6 +498,20 @@ bool Geometry::areTexturesLoaded() const {
|
||||||
material->checkResetOpacityMap();
|
material->checkResetOpacityMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (auto& materialMapping : _materialMapping) {
|
||||||
|
if (materialMapping.second) {
|
||||||
|
for (auto& materialPair : materialMapping.second->parsedMaterials.networkMaterials) {
|
||||||
|
if (materialPair.second) {
|
||||||
|
if (materialPair.second->isMissingTexture()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
materialPair.second->checkResetOpacityMap();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_areTexturesLoaded = true;
|
_areTexturesLoaded = true;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue