I was critically damp once. It was okay.
This commit is contained in:
@@ -1280,7 +1280,7 @@ S32 LLFolderViewFolder::arrange( S32* width, S32* height, S32 filter_generation)
|
||||
// animate current height towards target height
|
||||
if (llabs(mCurHeight - mTargetHeight) > 1.f)
|
||||
{
|
||||
mCurHeight = lerp(mCurHeight, mTargetHeight, LLCriticalDamp::getInterpolant(mIsOpen ? FOLDER_OPEN_TIME_CONSTANT : FOLDER_CLOSE_TIME_CONSTANT));
|
||||
mCurHeight = lerp(mCurHeight, mTargetHeight, LLSmoothInterpolation::getInterpolant(mIsOpen ? FOLDER_OPEN_TIME_CONSTANT : FOLDER_CLOSE_TIME_CONSTANT));
|
||||
|
||||
requestArrange();
|
||||
|
||||
@@ -2521,11 +2521,11 @@ void LLFolderViewFolder::draw()
|
||||
}
|
||||
else if (mIsOpen)
|
||||
{
|
||||
mControlLabelRotation = lerp(mControlLabelRotation, -90.f, LLCriticalDamp::getInterpolant(0.04f));
|
||||
mControlLabelRotation = lerp(mControlLabelRotation, -90.f, LLSmoothInterpolation::getInterpolant(0.04f));
|
||||
}
|
||||
else
|
||||
{
|
||||
mControlLabelRotation = lerp(mControlLabelRotation, 0.f, LLCriticalDamp::getInterpolant(0.025f));
|
||||
mControlLabelRotation = lerp(mControlLabelRotation, 0.f, LLSmoothInterpolation::getInterpolant(0.025f));
|
||||
}
|
||||
|
||||
bool possibly_has_children = false;
|
||||
|
||||
Reference in New Issue
Block a user