diff --git a/OpenSim/Framework/ISceneEntity.cs b/OpenSim/Framework/ISceneEntity.cs index 5ac364f994..c0ea302247 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 c453366050..74e8783bca 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; } }