* fixed a logic error in the receiving end of the prim load for the sit target

afrisby
Teravus Ovares 2007-12-27 05:52:24 +00:00
parent 2cb222806b
commit da66f3eac8
1 changed files with 5 additions and 2 deletions

View File

@ -810,8 +810,11 @@ namespace OpenSim.Region.Environment.Scenes
// Utility function so the databases don't have to reference axiom.math // Utility function so the databases don't have to reference axiom.math
public void SetSitTargetLL(LLVector3 offset, LLQuaternion orientation) public void SetSitTargetLL(LLVector3 offset, LLQuaternion orientation)
{ {
m_sitTargetPosition = new Vector3(offset.X, offset.Y, offset.Z); if (!(offset.X == 0 && offset.Y == 0 && offset.Z == 0 && orientation.W == 0 && orientation.X == 0 && orientation.Y == 0 && (orientation.Z == 0 || orientation.Z == 1)))
m_sitTargetOrientation = new Quaternion(orientation.W, orientation.X, orientation.Y, orientation.Z); {
m_sitTargetPosition = new Vector3(offset.X, offset.Y, offset.Z);
m_sitTargetOrientation = new Quaternion(orientation.W, orientation.X, orientation.Y, orientation.Z);
}
} }
public Vector3 GetSitTargetPosition() public Vector3 GetSitTargetPosition()