* fixed a logic error in the receiving end of the prim load for the sit target
parent
2cb222806b
commit
da66f3eac8
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue