From a90e1cf3aa6ae832e1ff4f2683e1c991eb9a849f Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Tue, 30 Aug 2011 22:39:16 +0100 Subject: add Name property to ISceneEntity --- OpenSim/Framework/ISceneEntity.cs | 1 + OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Framework/ISceneEntity.cs b/OpenSim/Framework/ISceneEntity.cs index 5ac364f..c0ea302 100644 --- a/OpenSim/Framework/ISceneEntity.cs +++ b/OpenSim/Framework/ISceneEntity.cs @@ -31,6 +31,7 @@ namespace OpenSim.Framework { public interface ISceneEntity { + string Name { get; set; } UUID UUID { get; } uint LocalId { get; } Vector3 AbsolutePosition { get; } diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index c453366..74e8783 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -254,11 +254,14 @@ namespace OpenSim.Region.Framework.Scenes /// public override string Name { - get { + get + { if (RootPart == null) return String.Empty; - return RootPart.Name; + else + return RootPart.Name; } + set { RootPart.Name = value; } } -- cgit v1.1