FIRE-2083: Slider in upload animation floater doesn't work
parent
8e38881d41
commit
8e57317618
|
|
@ -153,6 +153,9 @@ LLFloaterBvhPreview::LLFloaterBvhPreview(const std::string& filename) :
|
|||
mIDList["Surprise"] = ANIM_AGENT_EXPRESS_SURPRISE;
|
||||
mIDList["Wink"] = ANIM_AGENT_EXPRESS_WINK;
|
||||
mIDList["Worry"] = ANIM_AGENT_EXPRESS_WORRY;
|
||||
|
||||
// <FS:Ansariel> FIRE-2083: Slider in upload animation floater doesn't work
|
||||
mTimer.stop();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
@ -454,6 +457,13 @@ void LLFloaterBvhPreview::draw()
|
|||
{
|
||||
mAnimPreview->requestUpdate();
|
||||
}
|
||||
// <FS:Ansariel> FIRE-2083: Slider in upload animation floater doesn't work
|
||||
if (mTimer.getStarted() && mTimer.hasExpired())
|
||||
{
|
||||
mTimer.stop();
|
||||
mPauseRequest = avatarp->requestPause();
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -687,7 +697,12 @@ void LLFloaterBvhPreview::onSliderMove()
|
|||
avatarp->deactivateAllMotions();
|
||||
avatarp->startMotion(base_id, delta_time + BASE_ANIM_TIME_OFFSET);
|
||||
avatarp->startMotion(mMotionID, delta_time);
|
||||
mPauseRequest = avatarp->requestPause();
|
||||
// <FS:Ansariel> FIRE-2083: Slider in upload animation floater doesn't work
|
||||
//mPauseRequest = avatarp->requestPause();
|
||||
mPauseRequest = NULL;
|
||||
mTimer.resetWithExpiry(0.001f);
|
||||
mTimer.start();
|
||||
// </FS:Ansariel>
|
||||
refresh();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -129,6 +129,9 @@ protected:
|
|||
LLAnimPauseRequest mPauseRequest;
|
||||
|
||||
std::map<std::string, LLUUID> mIDList;
|
||||
|
||||
// <FS:Ansariel> FIRE-2083: Slider in upload animation floater doesn't work
|
||||
LLFrameTimer mTimer;
|
||||
};
|
||||
|
||||
#endif // LL_LLFLOATERBVHPREVIEW_H
|
||||
|
|
|
|||
Loading…
Reference in New Issue