diff options
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 9 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 9 |
2 files changed, 2 insertions, 16 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 9fd4728..2f25478 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -571,17 +571,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
571 | public void AttachToScene(Scene scene) | 571 | public void AttachToScene(Scene scene) |
572 | { | 572 | { |
573 | m_scene = scene; | 573 | m_scene = scene; |
574 | RegionHandle = scene.RegionInfo.RegionHandle; | ||
574 | 575 | ||
575 | ApplyPhysics(m_scene.m_physicalPrim); | 576 | ApplyPhysics(m_scene.m_physicalPrim); |
576 | 577 | ||
577 | lock (m_parts) | ||
578 | { | ||
579 | foreach (SceneObjectPart part in m_parts.Values) | ||
580 | { | ||
581 | part.AttachToScene(scene.RegionInfo.RegionHandle); | ||
582 | } | ||
583 | } | ||
584 | |||
585 | // one of these is a proxy. | 578 | // one of these is a proxy. |
586 | if (m_rootPart.Shape.PCode != (byte)PCode.None && m_rootPart.Shape.PCode != (byte)PCode.ParticleSystem) | 579 | if (m_rootPart.Shape.PCode != (byte)PCode.None && m_rootPart.Shape.PCode != (byte)PCode.ParticleSystem) |
587 | AttachToBackup(); | 580 | AttachToBackup(); |
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 3ddc0ed..d746ec4 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -3399,14 +3399,7 @@ if (m_shape != null) { | |||
3399 | } | 3399 | } |
3400 | 3400 | ||
3401 | #endregion Public Methods | 3401 | #endregion Public Methods |
3402 | 3402 | ||
3403 | /// <summary> | ||
3404 | /// Attach this part to a scene such that it appears to avatars | ||
3405 | /// </summary> | ||
3406 | protected internal void AttachToScene(ulong regionHandle) | ||
3407 | { | ||
3408 | m_regionHandle = regionHandle; | ||
3409 | } | ||
3410 | 3403 | ||
3411 | private byte GetAttachPointEncoded() | 3404 | private byte GetAttachPointEncoded() |
3412 | { | 3405 | { |