Workaround for NaN in rotation update from PSA to CM.
parent
ed380196ea
commit
b5463e042c
|
@ -308,7 +308,10 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
||||||
data["vel"] = OSD.FromVector3(presence.Velocity);
|
data["vel"] = OSD.FromVector3(presence.Velocity);
|
||||||
else
|
else
|
||||||
data["vel"] = OSD.FromVector3(Vector3.Zero);
|
data["vel"] = OSD.FromVector3(Vector3.Zero);
|
||||||
data["rot"] = OSD.FromQuaternion(presence.Rotation);
|
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["fly"] = OSD.FromBoolean(presence.Flying);
|
||||||
data["flags"] = OSD.FromUInteger((uint)presence.AgentControlFlags);
|
data["flags"] = OSD.FromUInteger((uint)presence.AgentControlFlags);
|
||||||
data["anim"] = OSD.FromString(presence.Animator.CurrentMovementAnimation);
|
data["anim"] = OSD.FromString(presence.Animator.CurrentMovementAnimation);
|
||||||
|
|
Loading…
Reference in New Issue