diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs b/OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs index f283ecb..bd19a7e 100644 --- a/OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs +++ b/OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs | |||
@@ -180,14 +180,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
180 | /// </summary> | 180 | /// </summary> |
181 | /// <param name="scene"></param> | 181 | /// <param name="scene"></param> |
182 | /// <param name="xmlData"></param> | 182 | /// <param name="xmlData"></param> |
183 | /// <returns>The scene object created</returns> | 183 | /// <returns>The scene object created. null if the scene object already existed</returns> |
184 | protected static SceneObjectGroup CreatePrimFromXml2(Scene scene, string xmlData) | 184 | protected static SceneObjectGroup CreatePrimFromXml2(Scene scene, string xmlData) |
185 | { | 185 | { |
186 | SceneObjectGroup obj = new SceneObjectGroup(xmlData); | 186 | SceneObjectGroup obj = new SceneObjectGroup(xmlData); |
187 | 187 | ||
188 | scene.AddRestoredSceneObject(obj, true); | 188 | if (scene.AddRestoredSceneObject(obj, true)) |
189 | 189 | return obj; | |
190 | return obj; | 190 | else |
191 | return null; | ||
191 | } | 192 | } |
192 | 193 | ||
193 | public static void SavePrimsToXml2(Scene scene, string fileName) | 194 | public static void SavePrimsToXml2(Scene scene, string fileName) |