From da66f3eac83ab2329b100108c767508b4e85a52f Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 27 Dec 2007 05:52:24 +0000 Subject: * fixed a logic error in the receiving end of the prim load for the sit target --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 973c30e..670d259 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -810,8 +810,11 @@ namespace OpenSim.Region.Environment.Scenes // Utility function so the databases don't have to reference axiom.math public void SetSitTargetLL(LLVector3 offset, LLQuaternion orientation) { - m_sitTargetPosition = new Vector3(offset.X, offset.Y, offset.Z); - m_sitTargetOrientation = new Quaternion(orientation.W, orientation.X, orientation.Y, orientation.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_sitTargetPosition = new Vector3(offset.X, offset.Y, offset.Z); + m_sitTargetOrientation = new Quaternion(orientation.W, orientation.X, orientation.Y, orientation.Z); + } } public Vector3 GetSitTargetPosition() -- cgit v1.1