aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorDiva Canto2010-01-16 08:42:20 -0800
committerDiva Canto2010-01-16 08:42:20 -0800
commitee1fb81376041f6eef27bbb3e84b56ae6e2357b3 (patch)
tree699da2a087254b95c591069fe76f1d67b579c1e5 /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parentFixed a missing field in the last regions table migration. (diff)
downloadopensim-SC_OLD-ee1fb81376041f6eef27bbb3e84b56ae6e2357b3.zip
opensim-SC_OLD-ee1fb81376041f6eef27bbb3e84b56ae6e2357b3.tar.gz
opensim-SC_OLD-ee1fb81376041f6eef27bbb3e84b56ae6e2357b3.tar.bz2
opensim-SC_OLD-ee1fb81376041f6eef27bbb3e84b56ae6e2357b3.tar.xz
Finished moving object crossings into EntityTransferModule
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs30
1 files changed, 0 insertions, 30 deletions
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
3431 } 3431 }
3432 } 3432 }
3433 3433
3434 public bool CrossAttachmentsIntoNewRegion(GridRegion destination, bool silent)
3435 {
3436 lock (m_attachments)
3437 {
3438 // Validate
3439 foreach (SceneObjectGroup gobj in m_attachments)
3440 {
3441 if (gobj == null || gobj.IsDeleted)
3442 return false;
3443 }
3444
3445 foreach (SceneObjectGroup gobj in m_attachments)
3446 {
3447 // If the prim group is null then something must have happened to it!
3448 if (gobj != null && gobj.RootPart != null)
3449 {
3450 // Set the parent localID to 0 so it transfers over properly.
3451 gobj.RootPart.SetParentLocalId(0);
3452 gobj.AbsolutePosition = gobj.RootPart.AttachedPos;
3453 gobj.RootPart.IsAttachment = false;
3454 //gobj.RootPart.LastOwnerID = gobj.GetFromAssetID();
3455 m_log.DebugFormat("[ATTACHMENT]: Sending attachment {0} to region {1}", gobj.UUID, destination.RegionName);
3456 m_scene.CrossPrimGroupIntoNewRegion(destination, gobj, silent);
3457 }
3458 }
3459 m_attachments.Clear();
3460
3461 return true;
3462 }
3463 }
3464 3434
3465 public void initializeScenePresence(IClientAPI client, RegionInfo region, Scene scene) 3435 public void initializeScenePresence(IClientAPI client, RegionInfo region, Scene scene)
3466 { 3436 {