Update skin instances pelvisoffset for each lod

meow-7.2.2
prep 2011-03-30 15:03:05 -04:00
parent dd71a9faac
commit 080c5fe083
1 changed files with 9 additions and 0 deletions

View File

@ -2535,6 +2535,15 @@ U32 LLModelPreview::calcResourceCost()
instance.mLOD[LLModel::LOD_PHYSICS] ?
instance.mLOD[LLModel::LOD_PHYSICS]->mPhysics.mHull :
instance.mModel->mPhysics.mHull;
//update instance skin info for each lod
for ( int j=0; j<LLModel::NUM_LODS; ++j )
{
if ( instance.mLOD[j] )
{
instance.mLOD[j]->mSkinInfo.mPelvisOffset = mPelvisZOffset;
}
}
LLSD ret = LLModel::writeModel(
"",