on recover form nom finite avatar pos, don't add it physics it it had none
parent
a5e3aab575
commit
c7fdb2ec53
|
@ -2456,7 +2456,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// This is irritating. Really.
|
// This is irritating. Really.
|
||||||
if (!AbsolutePosition.IsFinite())
|
if (!AbsolutePosition.IsFinite())
|
||||||
{
|
{
|
||||||
RemoveFromPhysicalScene();
|
bool isphysical = PhysicsActor != null;
|
||||||
|
if(isphysical)
|
||||||
|
RemoveFromPhysicalScene();
|
||||||
m_log.Error("[AVATAR]: NonFinite Avatar position detected... Reset Position. Mantis this please. Error #9999902");
|
m_log.Error("[AVATAR]: NonFinite Avatar position detected... Reset Position. Mantis this please. Error #9999902");
|
||||||
|
|
||||||
m_pos = m_LastFinitePos;
|
m_pos = m_LastFinitePos;
|
||||||
|
@ -2468,7 +2470,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
m_log.Error("[AVATAR]: NonFinite Avatar position detected... Reset Position. Mantis this please. Error #9999903");
|
m_log.Error("[AVATAR]: NonFinite Avatar position detected... Reset Position. Mantis this please. Error #9999903");
|
||||||
}
|
}
|
||||||
|
|
||||||
AddToPhysicalScene(false);
|
if(isphysical)
|
||||||
|
AddToPhysicalScene(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue