diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2018-04-06 12:15:08 +0000 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2018-04-06 12:15:08 +0000 |
commit | c1a44d462e39c84a6af187ed14c6c8beee3140da (patch) | |
tree | 3bf49f58dd852a46c4d3303a8a84822b733e95e0 /indra/newview/lltoolselect.cpp | |
parent | 83de982be911322dd0d22b5818363355fc9a5e4f (diff) |
MAINT-8479 Acount for possibility of agent's position above ground being below agent's pelvis
Diffstat (limited to 'indra/newview/lltoolselect.cpp')
-rw-r--r-- | indra/newview/lltoolselect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/lltoolselect.cpp b/indra/newview/lltoolselect.cpp index 1fcc9a0711..0ff05479f1 100644 --- a/indra/newview/lltoolselect.cpp +++ b/indra/newview/lltoolselect.cpp @@ -194,7 +194,7 @@ LLObjectSelectionHandle LLToolSelect::handleObjectSelection(const LLPickInfo& pi { LLQuaternion target_rot; target_rot.shortestArc(LLVector3::x_axis, selection_dir); - gAgent.startAutoPilotGlobal(gAgent.getPositionGlobal(), "", &target_rot, NULL, NULL, 1.f, SELECTION_ROTATION_TRESHOLD); + gAgent.startAutoPilotGlobal(gAgent.getPositionGlobal(), "", &target_rot, NULL, NULL, llmax(1.f, gAgentAvatarp->getPelvisToFoot()), SELECTION_ROTATION_TRESHOLD); } } |