New config var: DisableObjectTransfer. If set to True, objects never cross; instead they stay in the region, possibly placed outside its borders.

LSLKeyTest
Diva Canto 2016-07-03 12:17:19 -07:00
parent b3d8e35d67
commit e00603f78a
3 changed files with 12 additions and 0 deletions

View File

@ -250,6 +250,12 @@ namespace OpenSim.Region.Framework.Scenes
///
public int m_linksetPhysCapacity = 0;
/// <summary>
/// When placed outside the region's border, do we transfer the objects or
/// do we keep simulating them here?
/// </summary>
public bool DisableObjectTransfer { get; set; }
public bool m_useFlySlow;
public bool m_useTrashOnDelete = true;
@ -1155,6 +1161,7 @@ namespace OpenSim.Region.Framework.Scenes
if (entityTransferConfig != null)
{
AllowAvatarCrossing = entityTransferConfig.GetBoolean("AllowAvatarCrossing", AllowAvatarCrossing);
DisableObjectTransfer = entityTransferConfig.GetBoolean("DisableObjectTransfer", false);
}
#region Interest Management

View File

@ -556,6 +556,7 @@ namespace OpenSim.Region.Framework.Scenes
&& !Scene.PositionIsInCurrentRegion(val)
&& !IsAttachmentCheckFull()
&& !Scene.LoadingPrims
&& !Scene.DisableObjectTransfer
)
{
if (!inTransit)

View File

@ -800,6 +800,10 @@
; Allow avatars to cross into and out of the region.
AllowAvatarCrossing = true
; This disables border transfers for objects. When true, objects can be placed outside
; the region's border without being transferred to another simulator.
DisableObjectTransfer = false
; Minimum user level required for HyperGrid teleports
LevelHGTeleport = 0