mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +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
|
||||
if (_needsUpdateTransparentTextures && _geometry->getGeometry()->areTexturesLoaded()) {
|
||||
_needsUpdateTransparentTextures = false;
|
||||
if (_hasTransparentTextures != _geometry->getGeometry()->hasTransparentTextures()) {
|
||||
bool hasTransparentTextures = _geometry->getGeometry()->hasTransparentTextures();
|
||||
if (_hasTransparentTextures != hasTransparentTextures) {
|
||||
_hasTransparentTextures = hasTransparentTextures;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -379,7 +379,7 @@ protected:
|
|||
bool _needsReload { true };
|
||||
bool _needsUpdateClusterMatrices { true };
|
||||
mutable bool _needsUpdateTransparentTextures { true };
|
||||
bool _hasTransparentTextures { false };
|
||||
mutable bool _hasTransparentTextures { false };
|
||||
bool _showCollisionHull { false };
|
||||
|
||||
friend class ModelMeshPartPayload;
|
||||
|
|
Loading…
Reference in a new issue