diff options
author | Dave Parks <davep@lindenlab.com> | 2012-01-19 12:40:44 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2012-01-19 12:40:44 -0600 |
commit | f7cee997df9d7ca40aa40f56c87ff3968821d13a (patch) | |
tree | fa5a9055c077aaa8b288fa379e94d97a63380907 /indra/newview | |
parent | d987e992992a018a33f4921b502cdf1dada14f40 (diff) |
SH-2779 Fix for some transparent rigged attachments not being rendered correctly.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/lldrawpoolavatar.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/lldrawpoolavatar.cpp b/indra/newview/lldrawpoolavatar.cpp index e75e34df06..b002c11af5 100644 --- a/indra/newview/lldrawpoolavatar.cpp +++ b/indra/newview/lldrawpoolavatar.cpp @@ -1319,7 +1319,9 @@ void LLDrawPoolAvatar::updateRiggedFaceVertexBuffer(LLVOAvatar* avatar, LLFace* LLMatrix3 mat_normal(mat3); //let getGeometryVolume know if alpha should override shiny - if (face->getFaceColor().mV[3] < 1.f) + U32 type = gPipeline.getPoolTypeFromTE(face->getTextureEntry(), face->getTexture()); + + if (type == LLDrawPool::POOL_ALPHA) { face->setPoolType(LLDrawPool::POOL_ALPHA); } |