From e62016d2c77270a0dc23e31c5d1ccc2d412fcec3 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 19 Dec 2008 19:35:14 +0000 Subject: minor: Remove some serialization module scene wrappers --- OpenSim/Region/Environment/Scenes/SceneManager.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneManager.cs') 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 /// public void SaveCurrentSceneToXml2(string filename) { - CurrentOrFirstScene.SavePrimsToXml2(filename); + IRegionSerialiserModule serialiser = CurrentOrFirstScene.RequestModuleInterface(); + if (serialiser != null) + serialiser.SavePrimsToXml2(CurrentOrFirstScene, filename); } public void SaveNamedPrimsToXml2(string primName, string filename) @@ -221,7 +223,9 @@ namespace OpenSim.Region.Environment.Scenes /// public void LoadCurrentSceneFromXml2(string filename) { - CurrentOrFirstScene.LoadPrimsFromXml2(filename); + IRegionSerialiserModule serialiser = CurrentOrFirstScene.RequestModuleInterface(); + if (serialiser != null) + serialiser.LoadPrimsFromXml2(CurrentOrFirstScene, filename); } /// -- cgit v1.1