Workaround for NaN in rotation update from PSA to CM.
parent
ed380196ea
commit
b5463e042c
|
@ -308,6 +308,9 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
|||
data["vel"] = OSD.FromVector3(presence.Velocity);
|
||||
else
|
||||
data["vel"] = OSD.FromVector3(Vector3.Zero);
|
||||
if(System.Single.IsNaN(presence.Rotation.X))
|
||||
data["rot"] = OSD.FromQuaternion(Quaternion.Identity);
|
||||
else
|
||||
data["rot"] = OSD.FromQuaternion(presence.Rotation);
|
||||
data["fly"] = OSD.FromBoolean(presence.Flying);
|
||||
data["flags"] = OSD.FromUInteger((uint)presence.AgentControlFlags);
|
||||
|
|
Loading…
Reference in New Issue