* refactor: stop unnecessary passing of scene to sog copy constructor

* this is now done in AttachToScene()
0.6.0-stable
Justin Clarke Casey 2008-11-07 19:49:22 +00:00
parent f3edbcfa3b
commit af35f4cb4a
1 changed files with 2 additions and 6 deletions

View File

@ -363,10 +363,8 @@ namespace OpenSim.Region.Environment.Scenes
/// The original SceneObjectPart will be used rather than a copy, preserving /// The original SceneObjectPart will be used rather than a copy, preserving
/// its existing localID and UUID. /// its existing localID and UUID.
/// </summary> /// </summary>
public SceneObjectGroup(Scene scene, ulong regionHandle, SceneObjectPart part) public SceneObjectGroup(SceneObjectPart part)
{ {
m_scene = scene;
part.SetParent(this); part.SetParent(this);
part.ParentID = 0; part.ParentID = 0;
part.LinkNum = 0; part.LinkNum = 0;
@ -374,8 +372,6 @@ namespace OpenSim.Region.Environment.Scenes
m_parts.Add(part.UUID, part); m_parts.Add(part.UUID, part);
SetPartAsRoot(part); SetPartAsRoot(part);
RegionHandle = regionHandle;
} }
/// <summary> /// <summary>
@ -1982,7 +1978,7 @@ namespace OpenSim.Region.Environment.Scenes
linkPart.RotationOffset = worldRot; linkPart.RotationOffset = worldRot;
SceneObjectGroup objectGroup = new SceneObjectGroup(m_scene, m_regionHandle, linkPart); SceneObjectGroup objectGroup = new SceneObjectGroup(linkPart);
m_scene.AddNewSceneObject(objectGroup, true); m_scene.AddNewSceneObject(objectGroup, true);