summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerobject.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2025-04-15 22:19:15 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2025-04-15 22:19:15 +0300
commit06a76eda6af9fbe36e40a749c44e590ad6cfe363 (patch)
tree8e269e6e11880d316c9358c6654479c17f644b08 /indra/newview/llviewerobject.cpp
parentae931987356a71dbe8fc7ec31f2a2fe9108b4495 (diff)
parent293462d8ff6dcb00ec501d026a6589d869a2f846 (diff)
Merge branch 'develop' into marchcat/05-develop
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rw-r--r--indra/newview/llviewerobject.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp
index c5e81dd179..8d90187e91 100644
--- a/indra/newview/llviewerobject.cpp
+++ b/indra/newview/llviewerobject.cpp
@@ -2325,6 +2325,12 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys,
// Set the rotation of the object followed by adjusting for the accumulated angular velocity (llSetTargetOmega)
setRotation(new_rot * mAngularVelocityRot);
+ if ((mFlags & FLAGS_SERVER_AUTOPILOT) && asAvatar() && asAvatar()->isSelf())
+ {
+ gAgent.resetAxes();
+ gAgent.rotate(new_rot);
+ gAgentCamera.resetView();
+ }
setChanged(ROTATED | SILHOUETTE);
}