aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 4c93a88..dec8bf4 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -363,10 +363,8 @@ namespace OpenSim.Region.Environment.Scenes
363 /// The original SceneObjectPart will be used rather than a copy, preserving 363 /// The original SceneObjectPart will be used rather than a copy, preserving
364 /// its existing localID and UUID. 364 /// its existing localID and UUID.
365 /// </summary> 365 /// </summary>
366 public SceneObjectGroup(Scene scene, ulong regionHandle, SceneObjectPart part) 366 public SceneObjectGroup(SceneObjectPart part)
367 { 367 {
368 m_scene = scene;
369
370 part.SetParent(this); 368 part.SetParent(this);
371 part.ParentID = 0; 369 part.ParentID = 0;
372 part.LinkNum = 0; 370 part.LinkNum = 0;
@@ -374,8 +372,6 @@ namespace OpenSim.Region.Environment.Scenes
374 m_parts.Add(part.UUID, part); 372 m_parts.Add(part.UUID, part);
375 373
376 SetPartAsRoot(part); 374 SetPartAsRoot(part);
377
378 RegionHandle = regionHandle;
379 } 375 }
380 376
381 /// <summary> 377 /// <summary>
@@ -1982,7 +1978,7 @@ namespace OpenSim.Region.Environment.Scenes
1982 1978
1983 linkPart.RotationOffset = worldRot; 1979 linkPart.RotationOffset = worldRot;
1984 1980
1985 SceneObjectGroup objectGroup = new SceneObjectGroup(m_scene, m_regionHandle, linkPart); 1981 SceneObjectGroup objectGroup = new SceneObjectGroup(linkPart);
1986 1982
1987 m_scene.AddNewSceneObject(objectGroup, true); 1983 m_scene.AddNewSceneObject(objectGroup, true);
1988 1984