aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/InnerScene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/InnerScene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/InnerScene.cs14
1 files changed, 9 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs
index 6a2b2d9..abd3387 100644
--- a/OpenSim/Region/Environment/Scenes/InnerScene.cs
+++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs
@@ -196,7 +196,10 @@ namespace OpenSim.Region.Environment.Scenes
196 /// If true, changes to the object will be reflected in its persisted data 196 /// If true, changes to the object will be reflected in its persisted data
197 /// If false, the persisted data will not be changed even if the object in the scene is changed 197 /// If false, the persisted data will not be changed even if the object in the scene is changed
198 /// </param> 198 /// </param>
199 protected internal void AddRestoredSceneObject(SceneObjectGroup sceneObject, bool attachToBackup) 199 /// <returns>
200 /// true if the object was added, false if an object with the same uuid was already in the scene
201 /// </returns>
202 protected internal bool AddRestoredSceneObject(SceneObjectGroup sceneObject, bool attachToBackup)
200 { 203 {
201 sceneObject.RegionHandle = m_regInfo.RegionHandle; 204 sceneObject.RegionHandle = m_regInfo.RegionHandle;
202 sceneObject.SetScene(m_parentScene); 205 sceneObject.SetScene(m_parentScene);
@@ -208,7 +211,7 @@ namespace OpenSim.Region.Environment.Scenes
208 211
209 sceneObject.UpdateParentIDs(); 212 sceneObject.UpdateParentIDs();
210 213
211 AddSceneObject(sceneObject, attachToBackup); 214 return AddSceneObject(sceneObject, attachToBackup);
212 } 215 }
213 216
214 /// <summary> 217 /// <summary>
@@ -220,14 +223,15 @@ namespace OpenSim.Region.Environment.Scenes
220 /// If true, the object is made persistent into the scene. 223 /// If true, the object is made persistent into the scene.
221 /// If false, the object will not persist over server restarts 224 /// If false, the object will not persist over server restarts
222 /// </param> 225 /// </param>
223 /// <returns>true if the object was added, false if an object with the same uuid was already in the scene 226 /// <returns>
227 /// true if the object was added, false if an object with the same uuid was already in the scene
224 /// </returns> 228 /// </returns>
225 protected internal void AddNewSceneObject(SceneObjectGroup sceneObject, bool attachToBackup) 229 protected internal bool AddNewSceneObject(SceneObjectGroup sceneObject, bool attachToBackup)
226 { 230 {
227 // Ensure that we persist this new scene object 231 // Ensure that we persist this new scene object
228 sceneObject.HasGroupChanged = true; 232 sceneObject.HasGroupChanged = true;
229 233
230 AddSceneObject(sceneObject, attachToBackup); 234 return AddSceneObject(sceneObject, attachToBackup);
231 } 235 }
232 236
233 /// <summary> 237 /// <summary>