Better way to detect standing position, still minor issues with animations while in stand state (turning left, turning right still have problems)

This commit is contained in:
phr0z3nt04st
2010-08-11 22:11:13 -05:00
parent 7dc8d8a344
commit 78c2293dc4
4 changed files with 16 additions and 18 deletions

View File

@@ -137,6 +137,7 @@
#include "llviewerjoystick.h"
#include "llfollowcam.h"
// <edit>
#include "llao.h"
#include "llworldmapmessage.h"
// </edit>
using namespace LLVOAvatarDefines;
@@ -4957,6 +4958,10 @@ void LLAgent::onAnimStop(const LLUUID& id)
// handle automatic state transitions (based on completion of animation playback)
if (id == ANIM_AGENT_STAND)
{
// <edit>
if(LLAO::isEnabled())
LLAO::mTimer->resume();//Timer only pauses if its not paused, check is inside function.
// </edit>
stopFidget();
}
else if (id == ANIM_AGENT_AWAY)