summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAura Linden <aura@lindenlab.com>2015-10-13 16:40:39 -0700
committerAura Linden <aura@lindenlab.com>2015-10-13 16:40:39 -0700
commit8729f5d23a52263e55df5574c672c87d00b563bd (patch)
tree2e85b551730deea3b21ddd9c5df2e51cb6b71f09 /indra
parentb082ed28e8936fa378160be3076393f295c26c1b (diff)
Bandaid for SL-202 Skin weights with joint offsets.
Diffstat (limited to 'indra')
-rw-r--r--indra/llprimitive/lldaeloader.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llprimitive/lldaeloader.cpp b/indra/llprimitive/lldaeloader.cpp
index 6ff9613c80..6db6bc4dc7 100644
--- a/indra/llprimitive/lldaeloader.cpp
+++ b/indra/llprimitive/lldaeloader.cpp
@@ -1368,10 +1368,14 @@ void LLDAELoader::processDomModel(LLModel* model, DAE* dae, daeElement* root, do
LLMatrix4 newInverse = model->mSkinInfo.mInvBindMatrix[i];
newInverse.setTranslation( mJointList[lookingForJoint].getTranslation() );
model->mSkinInfo.mAlternateBindMatrix.push_back( newInverse );
- }
+ }
else
{
LL_WARNS()<<"Possibly misnamed/missing joint [" <<lookingForJoint.c_str()<<" ] "<<LL_ENDL;
+ //SL-202 15-31-10 Placeholders for the collision volume joints to keep array aligned.
+ LLMatrix4 emptyInverse;
+ emptyInverse.setZero();
+ model->mSkinInfo.mAlternateBindMatrix.push_back( emptyInverse );
}
}