diff options
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rwxr-xr-x | indra/newview/llvoavatar.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 5f030435dc..e6df4f4fd1 100755 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -5375,7 +5375,12 @@ void LLVOAvatar::addAttachmentPosOverridesForObject(LLViewerObject *vo) { pJoint->setId( currentId ); const LLVector3& jointPos = pSkinData->mAlternateBindMatrix[i].getTranslation(); - //if (!jointPos.isNull()) + if ((jointPos-pJoint->getDefaultPosition()).isNull()) + { + LL_DEBUGS("Avatar") << "Attachment pos override ignored for " << pJoint->getName() + << ", pos " << jointPos << " is same as default pos" << LL_ENDL; + } + else { //Set the joint position pJoint->addAttachmentPosOverride( jointPos, mesh_id, avString() ); |