diff options
author | Dave Parks <davep@lindenlab.com> | 2024-05-15 15:40:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-15 15:40:55 -0500 |
commit | 29be88d60d654193926add496d2d851f7c217356 (patch) | |
tree | cfc392d05ebbb334940cd5a91070e977a854fa70 /indra/newview/llface.cpp | |
parent | bbc9d9db4838e60724c8ba93c2efdbaa522595c1 (diff) |
#1267 Fix for alpha cutoff of zero and base color factor alpha of zero making objects disappear (#1485)
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r-- | indra/newview/llface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index ccee57cf69..659e9e76a6 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -1261,11 +1261,11 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume, { color = tep->getGLTFRenderMaterial()->mBaseColor; } - - if (rebuild_color) + + if (rebuild_color) { //decide if shiny goes in alpha channel of color if (tep && - !isInAlphaPool()) // <--- alpha channel MUST contain transparency, not shiny + !isInAlphaPool() && tep->getGLTFRenderMaterial() == nullptr) // <--- alpha channel MUST contain transparency, not shiny { LLMaterial* mat = tep->getMaterialParams().get(); |