add Name property to ISceneEntity
parent
1de68b34d9
commit
a90e1cf3aa
|
@ -31,6 +31,7 @@ namespace OpenSim.Framework
|
||||||
{
|
{
|
||||||
public interface ISceneEntity
|
public interface ISceneEntity
|
||||||
{
|
{
|
||||||
|
string Name { get; set; }
|
||||||
UUID UUID { get; }
|
UUID UUID { get; }
|
||||||
uint LocalId { get; }
|
uint LocalId { get; }
|
||||||
Vector3 AbsolutePosition { get; }
|
Vector3 AbsolutePosition { get; }
|
||||||
|
|
|
@ -254,11 +254,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public override string Name
|
public override string Name
|
||||||
{
|
{
|
||||||
get {
|
get
|
||||||
|
{
|
||||||
if (RootPart == null)
|
if (RootPart == null)
|
||||||
return String.Empty;
|
return String.Empty;
|
||||||
return RootPart.Name;
|
else
|
||||||
|
return RootPart.Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
set { RootPart.Name = value; }
|
set { RootPart.Name = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue