From 080c5fe08382cf70042350e2812cab1513fb8a16 Mon Sep 17 00:00:00 2001 From: prep Date: Wed, 30 Mar 2011 15:03:05 -0400 Subject: Update skin instances pelvisoffset for each lod --- indra/newview/llfloatermodelpreview.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 3cb756a006..73405c294c 100755 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -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; jmSkinInfo.mPelvisOffset = mPelvisZOffset; + } + } LLSD ret = LLModel::writeModel( "", -- cgit v1.2.3