RLVa update.
This commit is contained in:
@@ -465,6 +465,13 @@ void LLAvatarAppearance::computeBodySize()
|
||||
|
||||
LLVector3 foot = mFootLeftp->getPosition();
|
||||
|
||||
LLVector3 old_offset = mAvatarOffset;
|
||||
|
||||
// [RLVa:KB] - Checked: 2013-03-03 (RLVa-1.4.8)
|
||||
mAvatarOffset = getAvatarOffset();
|
||||
// [/RLVa:KB]
|
||||
// mAvatarOffset.mV[VZ] = getVisualParamWeight(11001);
|
||||
|
||||
mPelvisToFoot = hip.mV[VZ] * pelvis_scale.mV[VZ] -
|
||||
knee.mV[VZ] * hip_scale.mV[VZ] -
|
||||
ankle.mV[VZ] * knee_scale.mV[VZ] -
|
||||
@@ -484,13 +491,23 @@ void LLAvatarAppearance::computeBodySize()
|
||||
new_body_size.mV[VX] = DEFAULT_AGENT_DEPTH;
|
||||
new_body_size.mV[VY] = DEFAULT_AGENT_WIDTH;
|
||||
|
||||
if (new_body_size != mBodySize)
|
||||
//mAvatarOffset.mV[VX] = 0.0f;
|
||||
//mAvatarOffset.mV[VY] = 0.0f;
|
||||
|
||||
if (new_body_size != mBodySize || old_offset != mAvatarOffset)
|
||||
{
|
||||
mBodySize = new_body_size;
|
||||
bodySizeChanged();
|
||||
}
|
||||
}
|
||||
|
||||
// [RLVa:KB] - Checked: 2013-03-03 (RLVa-1.4.8)
|
||||
LLVector3 LLAvatarAppearance::getAvatarOffset() /*const*/
|
||||
{
|
||||
return LLVector3(0.f,0.f,getVisualParamWeight(11001));
|
||||
}
|
||||
// [/RLVa:KB]
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// parseSkeletonFile()
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user