summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatermodelpreview.cpp
diff options
context:
space:
mode:
authorAura Linden <aura@lindenlab.com>2015-10-27 15:15:34 -0700
committerAura Linden <aura@lindenlab.com>2015-10-27 15:15:34 -0700
commit97374a5362f097afd3027ea51757de2e36af4798 (patch)
treed8873f7076c0858c80faec7a3bf8d398c8d99c60 /indra/newview/llfloatermodelpreview.cpp
parent2f6166a5a4f8d5be679cef0699142c4ef061fb55 (diff)
Fixes SL-202 joint offset and skin weight import. Race condition still exists.
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
-rwxr-xr-xindra/newview/llfloatermodelpreview.cpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp
index c971faac5f..1926d76ce1 100755
--- a/indra/newview/llfloatermodelpreview.cpp
+++ b/indra/newview/llfloatermodelpreview.cpp
@@ -1721,6 +1721,13 @@ void LLModelPreview::getLegalJointNames(JointNameSet& legal_joint_names)
legal_joint_names.push_back(joint->getName());
}
}
+
+ std::stringstream cvstr;
+ for (S32 i = 0; i < av->mNumCollisionVolumes; i++)
+ {
+ legal_joint_names.push_back(av->mCollisionVolumes[i].getName());
+ cvstr << legal_joint_names[i];
+ }
}
void LLModelPreview::loadModel(std::string filename, S32 lod, bool force_disable_slm)
@@ -3352,19 +3359,6 @@ void LLModelPreview::update()
}
//-----------------------------------------------------------------------------
-// getTranslationForJointOffset()
-//-----------------------------------------------------------------------------
-LLVector3 LLModelPreview::getTranslationForJointOffset( std::string joint )
-{
- LLMatrix4 jointTransform;
- if ( mJointTransformMap.find( joint ) != mJointTransformMap.end() )
- {
- jointTransform = mJointTransformMap[joint];
- return jointTransform.getTranslation();
- }
- return LLVector3(0.0f,0.0f,0.0f);
-}
-//-----------------------------------------------------------------------------
// createPreviewAvatar
//-----------------------------------------------------------------------------
void LLModelPreview::createPreviewAvatar( void )