aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneManager.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneManager.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs
index 6072b70..b973ced 100644
--- a/OpenSim/Region/Environment/Scenes/SceneManager.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs
@@ -184,7 +184,9 @@ namespace OpenSim.Region.Environment.Scenes
184 /// <param name="filename"></param> 184 /// <param name="filename"></param>
185 public void SaveCurrentSceneToXml(string filename) 185 public void SaveCurrentSceneToXml(string filename)
186 { 186 {
187 CurrentOrFirstScene.SavePrimsToXml(filename); 187 IRegionSerialiserModule serialiser = CurrentOrFirstScene.RequestModuleInterface<IRegionSerialiserModule>();
188 if (serialiser != null)
189 serialiser.SavePrimsToXml(CurrentOrFirstScene, filename);
188 } 190 }
189 191
190 /// <summary> 192 /// <summary>
@@ -195,7 +197,9 @@ namespace OpenSim.Region.Environment.Scenes
195 /// <param name="loadOffset"></param> 197 /// <param name="loadOffset"></param>
196 public void LoadCurrentSceneFromXml(string filename, bool generateNewIDs, Vector3 loadOffset) 198 public void LoadCurrentSceneFromXml(string filename, bool generateNewIDs, Vector3 loadOffset)
197 { 199 {
198 CurrentOrFirstScene.LoadPrimsFromXml(filename, generateNewIDs, loadOffset); 200 IRegionSerialiserModule serialiser = CurrentOrFirstScene.RequestModuleInterface<IRegionSerialiserModule>();
201 if (serialiser != null)
202 serialiser.LoadPrimsFromXml(CurrentOrFirstScene, filename, generateNewIDs, loadOffset);
199 } 203 }
200 204
201 /// <summary> 205 /// <summary>