From ee1fb81376041f6eef27bbb3e84b56ae6e2357b3 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sat, 16 Jan 2010 08:42:20 -0800 Subject: Finished moving object crossings into EntityTransferModule --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 30 ------------------------ 1 file changed, 30 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index d185fba..afb5b9a 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -3431,36 +3431,6 @@ namespace OpenSim.Region.Framework.Scenes } } - public bool CrossAttachmentsIntoNewRegion(GridRegion destination, bool silent) - { - lock (m_attachments) - { - // Validate - foreach (SceneObjectGroup gobj in m_attachments) - { - if (gobj == null || gobj.IsDeleted) - return false; - } - - foreach (SceneObjectGroup gobj in m_attachments) - { - // If the prim group is null then something must have happened to it! - if (gobj != null && gobj.RootPart != null) - { - // Set the parent localID to 0 so it transfers over properly. - gobj.RootPart.SetParentLocalId(0); - gobj.AbsolutePosition = gobj.RootPart.AttachedPos; - gobj.RootPart.IsAttachment = false; - //gobj.RootPart.LastOwnerID = gobj.GetFromAssetID(); - m_log.DebugFormat("[ATTACHMENT]: Sending attachment {0} to region {1}", gobj.UUID, destination.RegionName); - m_scene.CrossPrimGroupIntoNewRegion(destination, gobj, silent); - } - } - m_attachments.Clear(); - - return true; - } - } public void initializeScenePresence(IClientAPI client, RegionInfo region, Scene scene) { -- cgit v1.1