summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorcosmic-linden <111533034+cosmic-linden@users.noreply.github.com>2024-05-15 15:48:58 -0700
committerGitHub <noreply@github.com>2024-05-15 15:48:58 -0700
commiteab232d3ed49bfb1f873e332ff57ec8c311c163b (patch)
treeb07ac60e9dcfbc93a86f7c0755e497978b3bba6e /indra/newview/llface.cpp
parent6252449cd392918d976f0af0317c44688e052b32 (diff)
parent3cb329d4fa53df9ab1ab371f26a178ef48ae3ca3 (diff)
Merge pull request #1488 from secondlife/brad/gltf-dev-featurttes-merge
brad/gltf dev featurttes merge
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r--indra/newview/llface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index 6ef0894ae4..fa7b5f2b17 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();