fetch SOP.RotationOffset once in UpdateRotation() and compare rather than fetch four separate times.

No functional change.
This commit is contained in:
Justin Clark-Casey (justincc)
2011-10-28 23:15:51 +01:00
parent 40bee97015
commit 7b46506822
2 changed files with 21 additions and 6 deletions

View File

@@ -1769,7 +1769,7 @@ namespace OpenSim.Region.Framework.Scenes
Rotation = Quaternion.CreateFromEulers(angle);
// m_log.DebugFormat("[SCENE PRESENCE]: Body rot for {0} set to {1}", Name, Rotation);
Vector3 agent_control_v3 = new Vector3();
HandleMoveToTargetUpdate(ref agent_control_v3);
AddNewMovement(agent_control_v3);