aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs b/OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs
index 73a1b9b..932f512 100644
--- a/OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs
+++ b/OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs
@@ -44,6 +44,7 @@ using OpenSim.Framework;
44using OpenSim.Framework.Console; 44using OpenSim.Framework.Console;
45using OpenSim.Framework.Servers; 45using OpenSim.Framework.Servers;
46using OpenSim.Framework.Communications; 46using OpenSim.Framework.Communications;
47using OpenSim.Region.Environment.Interfaces;
47using OpenSim.Region.Environment.Scenes; 48using OpenSim.Region.Environment.Scenes;
48using OpenSim.ApplicationPlugins.Rest; 49using OpenSim.ApplicationPlugins.Rest;
49 50
@@ -120,7 +121,10 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions
120 121
121 public string LoadPrims(string requestBody, OSHttpRequest request, OSHttpResponse response, Scene scene) 122 public string LoadPrims(string requestBody, OSHttpRequest request, OSHttpResponse response, Scene scene)
122 { 123 {
123 scene.LoadPrimsFromXml2(new StringReader(requestBody), true); 124 IRegionSerialiserModule serialiser = scene.RequestModuleInterface<IRegionSerialiserModule>();
125 if (serialiser != null)
126 serialiser.LoadPrimsFromXml2(scene, new StringReader(requestBody), true);
127
124 return ""; 128 return "";
125 } 129 }
126 130