Decoupled rlva/setting based z-offset from param based z-offset. This reverts questionable changes introduced in the recent rlva merge.
This commit is contained in:
@@ -465,10 +465,7 @@ void LLAvatarAppearance::computeBodySize()
|
||||
|
||||
LLVector3 old_offset = mAvatarOffset;
|
||||
|
||||
// [RLVa:KB] - Checked: 2013-03-03 (RLVa-1.4.8)
|
||||
mAvatarOffset = getAvatarOffset();
|
||||
// [/RLVa:KB]
|
||||
// mAvatarOffset.mV[VZ] = getVisualParamWeight(11001);
|
||||
mAvatarOffset.mV[VZ] = getVisualParamWeight(11001);
|
||||
|
||||
mPelvisToFoot = hip.mV[VZ] * pelvis_scale.mV[VZ] -
|
||||
knee.mV[VZ] * hip_scale.mV[VZ] -
|
||||
@@ -489,8 +486,8 @@ void LLAvatarAppearance::computeBodySize()
|
||||
new_body_size.mV[VX] = DEFAULT_AGENT_DEPTH;
|
||||
new_body_size.mV[VY] = DEFAULT_AGENT_WIDTH;
|
||||
|
||||
//mAvatarOffset.mV[VX] = 0.0f;
|
||||
//mAvatarOffset.mV[VY] = 0.0f;
|
||||
mAvatarOffset.mV[VX] = 0.0f;
|
||||
mAvatarOffset.mV[VY] = 0.0f;
|
||||
|
||||
if (new_body_size != mBodySize || old_offset != mAvatarOffset)
|
||||
{
|
||||
@@ -499,13 +496,6 @@ void LLAvatarAppearance::computeBodySize()
|
||||
}
|
||||
}
|
||||
|
||||
// [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