mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:12:53 +02:00
Update Model::_hasTransparentTextures
This commit is contained in:
parent
b90f2b2e0a
commit
d6640ac520
2 changed files with 4 additions and 2 deletions
|
@ -79,7 +79,9 @@ bool Model::needsFixupInScene() const {
|
||||||
// Once textures are loaded, fixup if they are now transparent
|
// Once textures are loaded, fixup if they are now transparent
|
||||||
if (_needsUpdateTransparentTextures && _geometry->getGeometry()->areTexturesLoaded()) {
|
if (_needsUpdateTransparentTextures && _geometry->getGeometry()->areTexturesLoaded()) {
|
||||||
_needsUpdateTransparentTextures = false;
|
_needsUpdateTransparentTextures = false;
|
||||||
if (_hasTransparentTextures != _geometry->getGeometry()->hasTransparentTextures()) {
|
bool hasTransparentTextures = _geometry->getGeometry()->hasTransparentTextures();
|
||||||
|
if (_hasTransparentTextures != hasTransparentTextures) {
|
||||||
|
_hasTransparentTextures = hasTransparentTextures;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -379,7 +379,7 @@ protected:
|
||||||
bool _needsReload { true };
|
bool _needsReload { true };
|
||||||
bool _needsUpdateClusterMatrices { true };
|
bool _needsUpdateClusterMatrices { true };
|
||||||
mutable bool _needsUpdateTransparentTextures { true };
|
mutable bool _needsUpdateTransparentTextures { true };
|
||||||
bool _hasTransparentTextures { false };
|
mutable bool _hasTransparentTextures { false };
|
||||||
bool _showCollisionHull { false };
|
bool _showCollisionHull { false };
|
||||||
|
|
||||||
friend class ModelMeshPartPayload;
|
friend class ModelMeshPartPayload;
|
||||||
|
|
Loading…
Reference in a new issue