From 5becc16acfa28eb1daf2b6ca0680d00e581b4d64 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 14 Sep 2015 16:40:01 +0100 Subject: try to improve vehicles crossing with Xengine. Lag seems main issue now, but needs testing, specially the fail cases, that most likelly need more work --- .../Framework/EntityTransfer/EntityTransferModule.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/CoreModules') diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 97d417f..e6041b4 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs @@ -2607,7 +2607,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer return neighbourRegion; } - +/* not in use. -> CrossPrimGroupIntoNewRegion /// /// Move the given scene object into a new region depending on which region its absolute position has moved /// into. @@ -2672,7 +2672,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer grp.ScheduleGroupForFullUpdate(); } } - +*/ /// /// Move the given scene object into a new region /// @@ -2682,7 +2682,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer /// true if the crossing itself was successful, false on failure /// FIMXE: we still return true if the crossing object was not successfully deleted from the originating region /// - public bool CrossPrimGroupIntoNewRegion(GridRegion destination, Vector3 newPosition, SceneObjectGroup grp, bool silent) + public bool CrossPrimGroupIntoNewRegion(GridRegion destination, Vector3 newPosition, SceneObjectGroup grp, bool silent, bool removeScripts) { //m_log.Debug(" >>> CrossPrimGroupIntoNewRegion <<<"); @@ -2714,7 +2714,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer // We remove the object here try { - grp.Scene.DeleteSceneObject(grp, silent); + grp.Scene.DeleteSceneObject(grp, silent, removeScripts); } catch (Exception e) { @@ -2764,7 +2764,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer "[ENTITY TRANSFER MODULE]: Sending attachment {0} to region {1}", clone.UUID, destination.RegionName); - CrossPrimGroupIntoNewRegion(destination, Vector3.Zero, clone, silent); + CrossPrimGroupIntoNewRegion(destination, Vector3.Zero, clone, silent,true); } } -- cgit v1.1