diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-07-29 22:55:44 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-07-29 23:33:25 +0300 |
commit | ebf7033f07d8a73559d8f3638643a9b27a1112c0 (patch) | |
tree | 653b752fc017b41b7938c27896676d0c3b52088e /indra/newview | |
parent | 8771130ef72af23a163eb3dc08782bec979f0251 (diff) |
SL-17858 Sit on ground was enabled but not working if already sitting
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewermenu.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 8522c2ed55..060c1611c1 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -4253,6 +4253,10 @@ class LLLandSit : public view_listener_t { bool handleEvent(const LLSD& userdata) { + if (gAgent.isSitting()) + { + gAgent.standUp(); + } LLVector3d posGlobal = LLToolPie::getInstance()->getPick().mPosGlobal; LLQuaternion target_rot; |