* Fixed the matching logic error on the LLQuat to axiom quat :P

afrisby
Teravus Ovares 2007-12-27 06:09:28 +00:00
parent da66f3eac8
commit dfbc6e101e
1 changed files with 1 additions and 1 deletions

View File

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