diff options
author | MW | 2007-08-09 19:30:52 +0000 |
---|---|---|
committer | MW | 2007-08-09 19:30:52 +0000 |
commit | 765bd02a486ee57e1594ca95653d2f4367b0900b (patch) | |
tree | b9341a00dddf37df47b538f8f27cbba052866146 /OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |
parent | remove invalid index (diff) | |
download | opensim-SC_OLD-765bd02a486ee57e1594ca95653d2f4367b0900b.zip opensim-SC_OLD-765bd02a486ee57e1594ca95653d2f4367b0900b.tar.gz opensim-SC_OLD-765bd02a486ee57e1594ca95653d2f4367b0900b.tar.bz2 opensim-SC_OLD-765bd02a486ee57e1594ca95653d2f4367b0900b.tar.xz |
SceneObjects should now (hopefully) call datastore.StoreObject().
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 5893988..78dd69c 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -119,7 +119,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
119 | SceneObjectPart newPart = new SceneObjectPart(m_regionHandle, this, ownerID, localID, shape, pos, rootOffset); | 119 | SceneObjectPart newPart = new SceneObjectPart(m_regionHandle, this, ownerID, localID, shape, pos, rootOffset); |
120 | this.m_parts.Add(newPart.UUID, newPart); | 120 | this.m_parts.Add(newPart.UUID, newPart); |
121 | this.SetPartAsRoot(newPart); | 121 | this.SetPartAsRoot(newPart); |
122 | 122 | m_scene.EventManager.OnBackup += this.ProcessBackup; | |
123 | } | 123 | } |
124 | 124 | ||
125 | 125 | ||
@@ -311,7 +311,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
311 | this.OnPrimCountTainted(); | 311 | this.OnPrimCountTainted(); |
312 | } | 312 | } |
313 | } | 313 | } |
314 | 314 | ||
315 | /// <summary> | ||
316 | /// Processes backup | ||
317 | /// </summary> | ||
318 | /// <param name="datastore"></param> | ||
319 | public void ProcessBackup(OpenSim.Region.Interfaces.IRegionDataStore datastore) | ||
320 | { | ||
321 | datastore.StoreObject(this); | ||
322 | } | ||
315 | /// <summary> | 323 | /// <summary> |
316 | /// | 324 | /// |
317 | /// </summary> | 325 | /// </summary> |