From 44d0b7c724d66bcbf77b51facf8bd3f8f3c2edfa Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 16 Jul 2008 21:27:57 +0000 Subject: make ParentUUID be a cached value, but allow setting it for short term storage (needed to rebuild SOGs) --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index b694f19..63ec23c 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -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 -- cgit v1.1