bug fix: do not let viewer agente update change rotation of sitting avatar (timing issue)

This commit is contained in:
UbitUmarov
2022-05-02 17:27:05 +01:00
parent 6a54992bb9
commit 4f42bd150d

View File

@@ -2661,17 +2661,13 @@ namespace OpenSim.Region.Framework.Scenes
ACFlags flags = RemoveIgnoredControls(allFlags, IgnoredControls);
m_AgentControlFlags = flags;
if (AllowMovement)
Rotation = agentData.BodyRotation;
// Raycast from the avatar's head to the camera to see if there's anything blocking the view
// this exclude checks may not be complete
if (agentData.NeedsCameraCollision)
checkCameraCollision();
PhysicsActor actor = m_physActor;
// This will be the case if the agent is sitting on the groudn or on an object.
PhysicsActor actor = m_physActor;
if (actor == null)
{
SendControlsToScripts((uint)allFlags);
@@ -2680,6 +2676,8 @@ namespace OpenSim.Region.Framework.Scenes
if (AllowMovement)
{
Rotation = agentData.BodyRotation;
//m_log.DebugFormat("[SCENE PRESENCE]: Initial body rotation {0} for {1}", agentData.BodyRotation, Name);
bool update_movementflag = false;
bool DCFlagKeyPressed = false;