diff options
author | Anchor Linden <anchor@lindenlab.com> | 2018-03-26 17:10:43 -0700 |
---|---|---|
committer | Anchor Linden <anchor@lindenlab.com> | 2018-03-26 17:10:43 -0700 |
commit | f8c42d2faf6c627b32903bf2be4f3aa4e58e6d13 (patch) | |
tree | 87453d210f01dd526cda971563a9bc255f820a61 /indra/newview | |
parent | d0b8617fe6052a94d3a1d06ca44475f05507c770 (diff) |
MAINT-8445: fix baked textures on attachments after relog
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llvoavatar.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 9f8c27cc6c..f61f0b7cc6 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -8395,9 +8395,29 @@ void LLVOAvatar::applyParsedAppearanceMessage(LLAppearanceMessageContents& conte } } } + + LLViewerObject::const_child_list_t& child_list = attached_object->getChildren(); + for (LLViewerObject::child_list_t::const_iterator iter = child_list.begin(); + iter != child_list.end(); ++iter) + { + LLViewerObject* objectp = *iter; + if (objectp) + { + for (int face_index = 0; face_index < objectp->getNumTEs(); face_index++) + { + LLTextureEntry* texEntry = objectp->getTE(face_index); + if (texEntry && LLAvatarAppearanceDefines::LLAvatarAppearanceDictionary::isBakedImageId(texEntry->getID())) + { + objectp->setTEImage(face_index, LLViewerTextureManager::getFetchedTexture(texEntry->getID(), FTT_DEFAULT, TRUE, LLGLTexture::BOOST_NONE, LLViewerTexture::LOD_TEXTURE)); + } + } + } + } } } + updateMeshVisibility(); + } // static |