Mantis#2423. Thank you kindly, Godfrey for a patch that:

Included patch fixes error: Z and W terms in the quaternion were 
swapped (ZERO_ROTATION is <0,0,0,1>, it was checking for <0,0,1,0>).
There is an issue with older prims: it seems their default sit 
target was not always set to ZERO_ROTATION;
This commit is contained in:
Charles Krinke
2008-11-06 19:18:30 +00:00
parent 563d583973
commit 9efc4e303b

View File

@@ -1230,8 +1230,8 @@ namespace OpenSim.Region.Environment.Scenes
bool SitTargetUnOccupied = (!(avOnTargetAlready != UUID.Zero));
bool SitTargetisSet =
(!(avSitOffSet.X == 0f && avSitOffSet.Y == 0f && avSitOffSet.Z == 0f && avSitOrientation.W == 0f &&
avSitOrientation.X == 0f && avSitOrientation.Y == 0f && avSitOrientation.Z == 1f));
(!(avSitOffSet.X == 0f && avSitOffSet.Y == 0f && avSitOffSet.Z == 0f && avSitOrientation.W == 1f &&
avSitOrientation.X == 0f && avSitOrientation.Y == 0f && avSitOrientation.Z == 0f));
if (SitTargetisSet && SitTargetUnOccupied)
{