get rid of intermediate local store of body rotation in ScenePresence, this is not used.

bulletsim
Justin Clark-Casey (justincc) 2011-08-11 02:36:02 +01:00
parent ee22569c92
commit 29093df1a7
1 changed files with 4 additions and 5 deletions

View File

@ -1397,7 +1397,6 @@ namespace OpenSim.Region.Framework.Scenes
bool update_rotation = false;
bool DCFlagKeyPressed = false;
Vector3 agent_control_v3 = Vector3.Zero;
Quaternion q = bodyRotation;
bool oldflying = PhysicsActor.Flying;
@ -1411,9 +1410,9 @@ namespace OpenSim.Region.Framework.Scenes
if (actor.Flying != oldflying)
update_movementflag = true;
if (q != m_bodyRot)
if (bodyRotation != m_bodyRot)
{
m_bodyRot = q;
m_bodyRot = bodyRotation;
update_rotation = true;
}
@ -1535,7 +1534,7 @@ namespace OpenSim.Region.Framework.Scenes
// m_log.DebugFormat(
// "In {0} adding velocity to {1} of {2}", m_scene.RegionInfo.RegionName, Name, agent_control_v3);
AddNewMovement(agent_control_v3, q);
AddNewMovement(agent_control_v3, bodyRotation);
}
if (update_movementflag