SL-17858 Sit on ground was enabled but not working if already sitting

meow-7.2.2
Andrey Kleshchev 2022-07-29 22:55:44 +03:00
parent 8771130ef7
commit ebf7033f07
1 changed files with 4 additions and 0 deletions

View File

@ -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;