summaryrefslogtreecommitdiff
path: root/indra/llappearance
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2016-07-06 20:07:14 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2016-07-06 20:07:14 -0400
commit4807d2745813d6f1490a45b7060ee5d434bd369e (patch)
tree826e4edf9a38453768f1f080568435ba20c22389 /indra/llappearance
parent880fd82d0be58aa4cc5ea16518d15fed3178aa29 (diff)
parentfa4339f3c78b053f986997744b8b4a4808b79c3a (diff)
merge
Diffstat (limited to 'indra/llappearance')
-rw-r--r--indra/llappearance/llpolyskeletaldistortion.cpp20
1 files changed, 5 insertions, 15 deletions
diff --git a/indra/llappearance/llpolyskeletaldistortion.cpp b/indra/llappearance/llpolyskeletaldistortion.cpp
index fdce8d97ce..e9750ae6f5 100644
--- a/indra/llappearance/llpolyskeletaldistortion.cpp
+++ b/indra/llappearance/llpolyskeletaldistortion.cpp
@@ -154,12 +154,6 @@ BOOL LLPolySkeletalDistortion::setInfo(LLPolySkeletalDistortionInfo *info)
continue;
}
- // BENTO remove?
- //if (mJointScales.find(joint) != mJointScales.end())
- //{
- // LL_WARNS() << "Scale deformation already supplied for joint " << joint->getName() << "." << LL_ENDL;
- //}
-
// store it
mJointScales[joint] = bone_info->mScaleDeformation;
@@ -178,11 +172,6 @@ BOOL LLPolySkeletalDistortion::setInfo(LLPolySkeletalDistortionInfo *info)
if (bone_info->mHasPositionDeformation)
{
- // BENTO remove?
- //if (mJointOffsets.find(joint) != mJointOffsets.end())
- //{
- // LL_WARNS() << "Offset deformation already supplied for joint " << joint->getName() << "." << LL_ENDL;
- //}
mJointOffsets[joint] = bone_info->mPositionDeformation;
}
}
@@ -218,9 +207,10 @@ void LLPolySkeletalDistortion::apply( ESex avatar_sex )
LLVector3 offset = (effective_weight - mLastWeight) * scaleDelta;
newScale = newScale + offset;
//An aspect of attached mesh objects (which contain joint offsets) that need to be cleaned up when detached
- // needed? // joint->storeScaleForReset( newScale );
+ // needed?
+ // joint->storeScaleForReset( newScale );
- // BENTO debugging stuff can be pulled.
+ // BENTO for detailed stack tracing of params.
std::stringstream ostr;
ostr << "LLPolySkeletalDistortion::apply, id " << getID() << " " << getName() << " effective wt " << effective_weight << " last wt " << mLastWeight << " scaleDelta " << scaleDelta << " offset " << offset;
LLScopedContextString str(ostr.str());
@@ -237,8 +227,8 @@ void LLPolySkeletalDistortion::apply( ESex avatar_sex )
LLVector3 positionDelta = iter->second;
newPosition = newPosition + (effective_weight * positionDelta) - (mLastWeight * positionDelta);
// SL-315
- // BENTO - allow attachment positions to override requests from the params.
- joint->setPosition(newPosition, true);
+ bool allow_attachment_pos_overrides = true;
+ joint->setPosition(newPosition, allow_attachment_pos_overrides);
}
if (mLastWeight != mCurWeight && !mIsAnimating)