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 b973ced..9e83f25 100644
--- a/OpenSim/Region/Environment/Scenes/SceneManager.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs
@@ -208,7 +208,9 @@ namespace OpenSim.Region.Environment.Scenes
208 /// <param name="filename"></param> 208 /// <param name="filename"></param>
209 public void SaveCurrentSceneToXml2(string filename) 209 public void SaveCurrentSceneToXml2(string filename)
210 { 210 {
211 CurrentOrFirstScene.SavePrimsToXml2(filename); 211 IRegionSerialiserModule serialiser = CurrentOrFirstScene.RequestModuleInterface<IRegionSerialiserModule>();
212 if (serialiser != null)
213 serialiser.SavePrimsToXml2(CurrentOrFirstScene, filename);
212 } 214 }
213 215
214 public void SaveNamedPrimsToXml2(string primName, string filename) 216 public void SaveNamedPrimsToXml2(string primName, string filename)
@@ -221,7 +223,9 @@ namespace OpenSim.Region.Environment.Scenes
221 /// </summary> 223 /// </summary>
222 public void LoadCurrentSceneFromXml2(string filename) 224 public void LoadCurrentSceneFromXml2(string filename)
223 { 225 {
224 CurrentOrFirstScene.LoadPrimsFromXml2(filename); 226 IRegionSerialiserModule serialiser = CurrentOrFirstScene.RequestModuleInterface<IRegionSerialiserModule>();
227 if (serialiser != null)
228 serialiser.LoadPrimsFromXml2(CurrentOrFirstScene, filename);
225 } 229 }
226 230
227 /// <summary> 231 /// <summary>