diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 30 |
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 | { |