Skip to content
Snippets Groups Projects
Commit 367823ce authored by callum's avatar callum
Browse files

EXP-623 FIX Selecting fly option while on click to walk path flys avatar to

end point but avatar spins and shakes when arriving at click point
parent f56a2e55
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
#include "llstatusbar.h" #include "llstatusbar.h"
#include "llteleportflags.h" #include "llteleportflags.h"
#include "lltool.h" #include "lltool.h"
#include "lltoolpie.h"
#include "lltoolmgr.h" #include "lltoolmgr.h"
#include "lltrans.h" #include "lltrans.h"
#include "llurlentry.h" #include "llurlentry.h"
...@@ -559,6 +560,8 @@ void LLAgent::setFlying(BOOL fly) ...@@ -559,6 +560,8 @@ void LLAgent::setFlying(BOOL fly)
// static // static
void LLAgent::toggleFlying() void LLAgent::toggleFlying()
{ {
LLToolPie::instance().stopClickToWalk();
BOOL fly = !gAgent.getFlying(); BOOL fly = !gAgent.getFlying();
gAgent.mMoveTimer.reset(); gAgent.mMoveTimer.reset();
......
...@@ -688,6 +688,15 @@ BOOL LLToolPie::handleMouseUp(S32 x, S32 y, MASK mask) ...@@ -688,6 +688,15 @@ BOOL LLToolPie::handleMouseUp(S32 x, S32 y, MASK mask)
return LLTool::handleMouseUp(x, y, mask); return LLTool::handleMouseUp(x, y, mask);
} }
void LLToolPie::stopClickToWalk()
{
mPick.mPosGlobal = gAgent.getPositionGlobal();
handle_go_to();
if(mAutoPilotDestination)
{
mAutoPilotDestination->markDead();
}
}
BOOL LLToolPie::handleDoubleClick(S32 x, S32 y, MASK mask) BOOL LLToolPie::handleDoubleClick(S32 x, S32 y, MASK mask)
{ {
......
...@@ -67,6 +67,7 @@ class LLToolPie : public LLTool, public LLSingleton<LLToolPie> ...@@ -67,6 +67,7 @@ class LLToolPie : public LLTool, public LLSingleton<LLToolPie>
LLObjectSelection* getLeftClickSelection() { return (LLObjectSelection*)mLeftClickSelection; } LLObjectSelection* getLeftClickSelection() { return (LLObjectSelection*)mLeftClickSelection; }
void resetSelection(); void resetSelection();
void blockClickToWalk() { mBlockClickToWalk = true; } void blockClickToWalk() { mBlockClickToWalk = true; }
void stopClickToWalk();
static void selectionPropertiesReceived(); static void selectionPropertiesReceived();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment