From 3a111650cbaf3294d9d12bfb1fa00ab91600991d Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Sat, 21 Jun 2008 18:11:45 +0000
Subject: * minor: override the name of the sog such that it gets/sets the root
part name
---
OpenSim/Region/Environment/Scenes/EntityBase.cs | 2 +-
OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
(limited to 'OpenSim')
diff --git a/OpenSim/Region/Environment/Scenes/EntityBase.cs b/OpenSim/Region/Environment/Scenes/EntityBase.cs
index 4b6ca49..1970896 100644
--- a/OpenSim/Region/Environment/Scenes/EntityBase.cs
+++ b/OpenSim/Region/Environment/Scenes/EntityBase.cs
@@ -56,7 +56,7 @@ namespace OpenSim.Region.Environment.Scenes
protected string m_name;
///
- ///
+ /// The name of this entity
///
public virtual string Name
{
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index f94830e..0d759cf 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -116,6 +116,15 @@ namespace OpenSim.Region.Environment.Scenes
private int m_startparameter = 0;
#region Properties
+
+ ///
+ /// The name of an object grouping is always the same as its root part
+ ///
+ public override string Name
+ {
+ get { return RootPart.Name; }
+ set { RootPart.Name = value; }
+ }
///
/// Added because the Parcel code seems to use it
--
cgit v1.1