Don't bothre setting RezzingObjectID to UUID.Zero in SOG constructor - this is already its default value as it's a struct.

0.7.4.1
Justin Clark-Casey (justincc) 2012-08-03 02:08:04 +01:00
parent cd9fd77e2c
commit 08ec18f8a3
1 changed files with 4 additions and 3 deletions

View File

@ -642,7 +642,6 @@ namespace OpenSim.Region.Framework.Scenes
/// </summary> /// </summary>
public SceneObjectGroup() public SceneObjectGroup()
{ {
RezzingObjectID = UUID.Zero;
} }
/// <summary> /// <summary>
@ -650,7 +649,8 @@ namespace OpenSim.Region.Framework.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(SceneObjectPart part) : this() /// <param name='part'>Root part for this scene object.</param>
public SceneObjectGroup(SceneObjectPart part)
{ {
SetRootPart(part); SetRootPart(part);
} }
@ -658,7 +658,8 @@ namespace OpenSim.Region.Framework.Scenes
/// <summary> /// <summary>
/// Constructor. This object is added to the scene later via AttachToScene() /// Constructor. This object is added to the scene later via AttachToScene()
/// </summary> /// </summary>
public SceneObjectGroup(UUID ownerID, Vector3 pos, Quaternion rot, PrimitiveBaseShape shape) :this(new SceneObjectPart(ownerID, shape, pos, rot, Vector3.Zero)) public SceneObjectGroup(UUID ownerID, Vector3 pos, Quaternion rot, PrimitiveBaseShape shape)
:this(new SceneObjectPart(ownerID, shape, pos, rot, Vector3.Zero))
{ {
} }