diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObject.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObject.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObject.cs b/OpenSim/Region/Environment/Scenes/SceneObject.cs index d507a98..7058ece 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObject.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObject.cs | |||
@@ -74,6 +74,18 @@ namespace OpenSim.Region.Environment.Scenes | |||
74 | m_world = world; | 74 | m_world = world; |
75 | this.Pos = pos; | 75 | this.Pos = pos; |
76 | this.CreateRootFromShape(ownerID, localID, shape, pos); | 76 | this.CreateRootFromShape(ownerID, localID, shape, pos); |
77 | |||
78 | // Setup a backup event listener | ||
79 | world.eventManager.OnBackup += new EventManager.OnBackupDelegate(ProcessBackup); | ||
80 | } | ||
81 | |||
82 | /// <summary> | ||
83 | /// Processes backup | ||
84 | /// </summary> | ||
85 | /// <param name="datastore"></param> | ||
86 | void ProcessBackup(OpenSim.Region.Interfaces.IRegionDataStore datastore) | ||
87 | { | ||
88 | datastore.StoreObject(this); | ||
77 | } | 89 | } |
78 | 90 | ||
79 | /// <summary> | 91 | /// <summary> |