diff options
author | Sean Dague | 2008-07-16 21:27:57 +0000 |
---|---|---|
committer | Sean Dague | 2008-07-16 21:27:57 +0000 |
commit | 44d0b7c724d66bcbf77b51facf8bd3f8f3c2edfa (patch) | |
tree | 3aadda265e196887c543a3a5316a3f80a09e84b1 /OpenSim/Region/Environment/Scenes | |
parent | fix RegionStore creation so that the .sql file works (diff) | |
download | opensim-SC-44d0b7c724d66bcbf77b51facf8bd3f8f3c2edfa.zip opensim-SC-44d0b7c724d66bcbf77b51facf8bd3f8f3c2edfa.tar.gz opensim-SC-44d0b7c724d66bcbf77b51facf8bd3f8f3c2edfa.tar.bz2 opensim-SC-44d0b7c724d66bcbf77b51facf8bd3f8f3c2edfa.tar.xz |
make ParentUUID be a cached value, but allow setting it for
short term storage (needed to rebuild SOGs)
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 13 |
1 files changed, 11 insertions, 2 deletions
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 | |||
931 | get { return ParentGroup.Scene.RegionInfo.RegionID; } | 931 | get { return ParentGroup.Scene.RegionInfo.RegionID; } |
932 | set {} // read only | 932 | set {} // read only |
933 | } | 933 | } |
934 | |||
935 | private LLUUID _parentUUID = LLUUID.Zero; | ||
934 | [XmlIgnore] | 936 | [XmlIgnore] |
935 | public LLUUID ParentUUID | 937 | public LLUUID ParentUUID |
936 | { | 938 | { |
937 | get { return ParentGroup.UUID; } | 939 | get |
938 | set {} // read only | 940 | { |
941 | if (ParentGroup != null) | ||
942 | { | ||
943 | _parentUUID = ParentGroup.UUID; | ||
944 | } | ||
945 | return _parentUUID; | ||
946 | } | ||
947 | set { _parentUUID = value; } | ||
939 | } | 948 | } |
940 | 949 | ||
941 | #endregion Public Properties with only Get | 950 | #endregion Public Properties with only Get |