mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 02:12:53 +02:00
fix transparent textures on baked assets
This commit is contained in:
parent
ccc6fd1eb0
commit
b89dbf8346
1 changed files with 14 additions and 0 deletions
|
@ -498,6 +498,20 @@ bool Geometry::areTexturesLoaded() const {
|
|||
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;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue