make ParentUUID be a cached value, but allow setting it for

short term storage (needed to rebuild SOGs)
0.6.0-stable
Sean Dague 2008-07-16 21:27:57 +00:00
parent d3190236cc
commit 44d0b7c724
1 changed files with 11 additions and 2 deletions

View File

@ -931,11 +931,20 @@ namespace OpenSim.Region.Environment.Scenes
get { return ParentGroup.Scene.RegionInfo.RegionID; }
set {} // read only
}
private LLUUID _parentUUID = LLUUID.Zero;
[XmlIgnore]
public LLUUID ParentUUID
{
get { return ParentGroup.UUID; }
set {} // read only
get
{
if (ParentGroup != null)
{
_parentUUID = ParentGroup.UUID;
}
return _parentUUID;
}
set { _parentUUID = value; }
}
#endregion Public Properties with only Get