on recover form nom finite avatar pos, don't add it physics it it had none

0.9.0-post-fixes
UbitUmarov 2017-05-21 00:52:18 +01:00
parent a5e3aab575
commit c7fdb2ec53
1 changed files with 5 additions and 2 deletions

View File

@ -2456,6 +2456,8 @@ namespace OpenSim.Region.Framework.Scenes
// This is irritating. Really.
if (!AbsolutePosition.IsFinite())
{
bool isphysical = PhysicsActor != null;
if(isphysical)
RemoveFromPhysicalScene();
m_log.Error("[AVATAR]: NonFinite Avatar position detected... Reset Position. Mantis this please. Error #9999902");
@ -2468,6 +2470,7 @@ namespace OpenSim.Region.Framework.Scenes
m_log.Error("[AVATAR]: NonFinite Avatar position detected... Reset Position. Mantis this please. Error #9999903");
}
if(isphysical)
AddToPhysicalScene(false);
}
else