summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatermodelpreview.cpp
diff options
context:
space:
mode:
authorprep <prep@lindenlab.com>2011-03-30 15:03:05 -0400
committerprep <prep@lindenlab.com>2011-03-30 15:03:05 -0400
commit080c5fe08382cf70042350e2812cab1513fb8a16 (patch)
treed982725a702aca0bfe8304fbf4e7368886a97f4e /indra/newview/llfloatermodelpreview.cpp
parentdd71a9faacbf52ab5a741c86924149251fadc009 (diff)
Update skin instances pelvisoffset for each lod
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
-rwxr-xr-xindra/newview/llfloatermodelpreview.cpp9
1 files changed, 9 insertions, 0 deletions
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; j<LLModel::NUM_LODS; ++j )
+ {
+ if ( instance.mLOD[j] )
+ {
+ instance.mLOD[j]->mSkinInfo.mPelvisOffset = mPelvisZOffset;
+ }
+ }
LLSD ret = LLModel::writeModel(
"",