limit unscripted and not done by physics sits to 10m distance again
parent
7adaede14a
commit
59f41598db
|
@ -3401,6 +3401,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (PhysicsSit(part,offset)) // physics engine
|
if (PhysicsSit(part,offset)) // physics engine
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (Vector3.DistanceSquared(AbsolutePosition, pos) > 100f)
|
||||||
|
return;
|
||||||
|
|
||||||
AbsolutePosition = pos + new Vector3(0.0f, 0.0f, m_sitAvatarHeight);
|
AbsolutePosition = pos + new Vector3(0.0f, 0.0f, m_sitAvatarHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue