diff options
author | Dave Parks <davep@lindenlab.com> | 2014-03-24 14:04:40 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2014-03-24 14:04:40 -0500 |
commit | 3d80a0858d97012bf24cfb26e4053369c41b068e (patch) | |
tree | df958a4bffa5d3a723d986658dd4142dc392bd1a /indra/newview/lldrawpoolavatar.cpp | |
parent | 6bbb86811e02f508323460e875eabe836e4fe40c (diff) |
MAINT-3211 Fix for texture animations not working properly on rigged attachments when worn from inventory.
Diffstat (limited to 'indra/newview/lldrawpoolavatar.cpp')
-rwxr-xr-x | indra/newview/lldrawpoolavatar.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolavatar.cpp b/indra/newview/lldrawpoolavatar.cpp index 24f467f954..716243b381 100755 --- a/indra/newview/lldrawpoolavatar.cpp +++ b/indra/newview/lldrawpoolavatar.cpp @@ -1517,6 +1517,17 @@ void LLDrawPoolAvatar::getRiggedGeometry(LLFace* face, LLPointer<LLVertexBuffer> face->setPoolType(LLDrawPool::POOL_AVATAR); } + //let getGeometryVolume know if a texture matrix is in play + if (face->mTextureMatrix) + { + face->setState(LLFace::TEXTURE_ANIM); + } + else + { + face->clearState(LLFace::TEXTURE_ANIM); + } + + //llinfos << "Rebuilt face " << face->getTEOffset() << " of " << face->getDrawable() << " at " << gFrameTimeSeconds << llendl; face->getGeometryVolume(*volume, face->getTEOffset(), mat_vert, mat_normal, offset, true); |