From 08ec18f8a3959c7326cea634258c0c04d2170b36 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 3 Aug 2012 02:08:04 +0100
Subject: Don't bothre setting RezzingObjectID to UUID.Zero in SOG constructor
- this is already its default value as it's a struct.
---
OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
(limited to 'OpenSim/Region')
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 13cc5cd..890971d 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -642,7 +642,6 @@ namespace OpenSim.Region.Framework.Scenes
///
public SceneObjectGroup()
{
- RezzingObjectID = UUID.Zero;
}
///
@@ -650,7 +649,8 @@ namespace OpenSim.Region.Framework.Scenes
/// The original SceneObjectPart will be used rather than a copy, preserving
/// its existing localID and UUID.
///
- public SceneObjectGroup(SceneObjectPart part) : this()
+ /// Root part for this scene object.
+ public SceneObjectGroup(SceneObjectPart part)
{
SetRootPart(part);
}
@@ -658,7 +658,8 @@ namespace OpenSim.Region.Framework.Scenes
///
/// Constructor. This object is added to the scene later via AttachToScene()
///
- 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))
{
}
--
cgit v1.1