Stop deleting objects that have status DIE_AT_EDGE set when they cross regions.
This was an OpenSim hack to prevent vehicles from trying to cross.avinationmerge
parent
35616339f3
commit
1a407e2545
|
@ -2271,19 +2271,23 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
if (scene == null)
|
if (scene == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (grp.RootPart.DIE_AT_EDGE)
|
// http://wiki.secondlife.com/wiki/STATUS_DIE_AT_EDGE
|
||||||
{
|
// DieAtEdge does NOT mean that objects can't cross regions.
|
||||||
// We remove the object here
|
// It just means they die when they go off world, unless
|
||||||
try
|
// RETURN_AT_EDGE is set.
|
||||||
{
|
// if (grp.RootPart.DIE_AT_EDGE)
|
||||||
scene.DeleteSceneObject(grp, false);
|
// {
|
||||||
}
|
// // We remove the object here
|
||||||
catch (Exception)
|
// try
|
||||||
{
|
// {
|
||||||
m_log.Warn("[DATABASE]: exception when trying to remove the prim that crossed the border.");
|
// scene.DeleteSceneObject(grp, false);
|
||||||
}
|
// }
|
||||||
return;
|
// catch (Exception)
|
||||||
}
|
// {
|
||||||
|
// m_log.Warn("[DATABASE]: exception when trying to remove the prim that crossed the border.");
|
||||||
|
// }
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
int thisx = (int)scene.RegionInfo.RegionLocX;
|
int thisx = (int)scene.RegionInfo.RegionLocX;
|
||||||
int thisy = (int)scene.RegionInfo.RegionLocY;
|
int thisy = (int)scene.RegionInfo.RegionLocY;
|
||||||
|
|
Loading…
Reference in New Issue