SH-2689 WIP - fix for isFullyTextured when no skirt worn

master
Brad Payne (Vir Linden) 2012-02-27 18:13:06 -05:00
parent 55b5d6b7b4
commit 2959bcd3de
1 changed files with 6 additions and 3 deletions

View File

@ -904,10 +904,13 @@ BOOL LLVOAvatar::isFullyBaked()
BOOL LLVOAvatar::isFullyTextured() const
{
for (std::vector<LLViewerJoint*>::const_iterator jointIter = mMeshLOD.begin();
jointIter != mMeshLOD.end(); ++jointIter)
for (S32 i = 0; i < mMeshLOD.size(); i++)
{
LLViewerJoint* joint = (LLViewerJoint*) *jointIter;
LLViewerJoint* joint = (LLViewerJoint*) mMeshLOD[i];
if (i==MESH_ID_SKIRT && !isWearingWearableType(LLWearableType::WT_SKIRT))
{
continue; // don't care about skirt textures if we're not wearing one.
}
if (!joint)
{
continue; // nonexistent LOD OK.