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; } get { return ParentGroup.Scene.RegionInfo.RegionID; }
set {} // read only set {} // read only
} }
private LLUUID _parentUUID = LLUUID.Zero;
[XmlIgnore] [XmlIgnore]
public LLUUID ParentUUID public LLUUID ParentUUID
{ {
get { return ParentGroup.UUID; } get
set {} // read only {
if (ParentGroup != null)
{
_parentUUID = ParentGroup.UUID;
}
return _parentUUID;
}
set { _parentUUID = value; }
} }
#endregion Public Properties with only Get #endregion Public Properties with only Get