summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-02-12 21:52:06 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-02-12 21:52:23 +0200
commitf60f12d94ebe3862f5b1eef55795dabc0ba72693 (patch)
tree7e29bc7ec2187778c24e85bd7cdf8a593d8e934b /indra
parent7a5381b39f0b23649103f393a6d48ad1ab88a2bb (diff)
SL-19119 Fix mouse steering
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/lltoolfocus.h1
-rw-r--r--indra/newview/lltoolpie.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/lltoolfocus.h b/indra/newview/lltoolfocus.h
index 6615193318..ef71f9230a 100644
--- a/indra/newview/lltoolfocus.h
+++ b/indra/newview/lltoolfocus.h
@@ -49,6 +49,7 @@ public:
virtual LLTool* getOverrideTool(MASK mask) { return NULL; }
+ void setClickPickPending() { mClickPickPending = true; }
static void pickCallback(const LLPickInfo& pick_info);
BOOL mouseSteerMode() { return mMouseSteering; }
diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp
index 5fb83bf08e..58011bbde2 100644
--- a/indra/newview/lltoolpie.cpp
+++ b/indra/newview/lltoolpie.cpp
@@ -443,6 +443,7 @@ BOOL LLToolPie::handleLeftClickPick()
LLToolMgr::getInstance()->setTransientTool(LLToolCamera::getInstance());
gViewerWindow->hideCursor();
LLToolCamera::getInstance()->setMouseCapture(TRUE);
+ LLToolCamera::getInstance()->setClickPickPending();
LLToolCamera::getInstance()->pickCallback(mPick);
gAgentCamera.setFocusOnAvatar(TRUE, TRUE);