summaryrefslogtreecommitdiff
path: root/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-08-05 19:44:09 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-08-05 19:44:54 +0300
commitbc269314829f5b3e795c4531deac12a3b45195c1 (patch)
tree141de1b83e4662687b750089792aa53975968c08 /indra/newview/llagent.cpp
parent09400b74ad79c468ca207005a6ca6621fa845f5d (diff)
SL-17908 No left and right events when both held down
Reverts part of SL-15746
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r--indra/newview/llagent.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index 7f6f6e5997..999f4a9f20 100644
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -716,6 +716,9 @@ void LLAgent::moveYaw(F32 mag, bool reset_view)
U32 mask = AGENT_CONTROL_YAW_POS | AGENT_CONTROL_YAW_NEG;
if ((getControlFlags() & mask) == mask)
{
+ // Rotation into both directions should cancel out
+ // But keep sending controls to simulator,
+ // it's needed for script based controls
gAgentCamera.setYawKey(0);
}