Merge branch 'animesh' of git://github.com/Shyotl/SingularityViewer into animesh
This commit is contained in:
@@ -128,11 +128,11 @@ BOOL LLSkinJoint::setupSkinJoint( LLJoint *joint)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// compute the inverse root skin matrix
|
// compute the inverse root skin matrix
|
||||||
mRootToJointSkinOffset = totalSkinOffset((LLAvatarJoint*)joint);
|
mRootToJointSkinOffset = totalSkinOffset(mJoint);
|
||||||
mRootToJointSkinOffset = -mRootToJointSkinOffset;
|
mRootToJointSkinOffset = -mRootToJointSkinOffset;
|
||||||
|
|
||||||
//mRootToParentJointSkinOffset = totalSkinOffset((LLAvatarJoint*)joint->getParent());
|
//mRootToParentJointSkinOffset = totalSkinOffset((LLAvatarJoint*)joint->getParent());
|
||||||
mRootToParentJointSkinOffset = totalSkinOffset(getBaseSkeletonAncestor((LLAvatarJoint*)joint));
|
mRootToParentJointSkinOffset = totalSkinOffset(getBaseSkeletonAncestor(mJoint));
|
||||||
mRootToParentJointSkinOffset = -mRootToParentJointSkinOffset;
|
mRootToParentJointSkinOffset = -mRootToParentJointSkinOffset;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
@@ -7762,6 +7762,13 @@ const LLViewerJointAttachment *LLVOAvatar::attachObject(LLViewerObject *viewer_o
|
|||||||
<< (item ? item->getName() : "UNKNOWN") << " id " << item_id << LL_ENDL;
|
<< (item ? item->getName() : "UNKNOWN") << " id " << item_id << LL_ENDL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The object can already exist in the vector if it was attached while was already attached (causing a re-attach).
|
||||||
|
std::pair<LLViewerObject*, LLViewerJointAttachment*> const val(viewer_object, attachment);
|
||||||
|
if (std::find(mAttachedObjectsVector.begin(), mAttachedObjectsVector.end(), val) == mAttachedObjectsVector.end())
|
||||||
|
{
|
||||||
|
mAttachedObjectsVector.push_back(val);
|
||||||
|
}
|
||||||
|
|
||||||
if (!viewer_object->isAnimatedObject())
|
if (!viewer_object->isAnimatedObject())
|
||||||
{
|
{
|
||||||
@@ -7776,13 +7783,6 @@ const LLViewerJointAttachment *LLVOAvatar::attachObject(LLViewerObject *viewer_o
|
|||||||
LLSelectMgr::getInstance()->updatePointAt();
|
LLSelectMgr::getInstance()->updatePointAt();
|
||||||
}
|
}
|
||||||
|
|
||||||
// The object can already exist in the vector if it was attached while was already attached (causing a re-attach).
|
|
||||||
std::pair<LLViewerObject*, LLViewerJointAttachment*> const val(viewer_object, attachment);
|
|
||||||
if (std::find(mAttachedObjectsVector.begin(), mAttachedObjectsVector.end(), val) == mAttachedObjectsVector.end())
|
|
||||||
{
|
|
||||||
mAttachedObjectsVector.push_back(val);
|
|
||||||
}
|
|
||||||
|
|
||||||
return attachment;
|
return attachment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user