aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneManager.cs
diff options
context:
space:
mode:
authorMW2008-07-01 19:23:45 +0000
committerMW2008-07-01 19:23:45 +0000
commitc9fe500212cf8b8231ef0604a1f577e9bbedfcbe (patch)
tree4515ef7ae75a913ff2172c5ad2d3be747ffc893d /OpenSim/Region/Environment/Scenes/SceneManager.cs
parentMantis#1640. Thank you, Chernega for a patch that addresses: (diff)
downloadopensim-SC_OLD-c9fe500212cf8b8231ef0604a1f577e9bbedfcbe.zip
opensim-SC_OLD-c9fe500212cf8b8231ef0604a1f577e9bbedfcbe.tar.gz
opensim-SC_OLD-c9fe500212cf8b8231ef0604a1f577e9bbedfcbe.tar.bz2
opensim-SC_OLD-c9fe500212cf8b8231ef0604a1f577e9bbedfcbe.tar.xz
Added "save-prims-xml2 <PrimName> <FileName>", as we were lacking a method to save a single primitive or small group of them. This command will save all prims in the current scene that name matches the "PrimName" parameter. The saved file is in standard xml2 format, so can be loaded using load-xml2
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneManager.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneManager.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs
index add8081..a3a9c75 100644
--- a/OpenSim/Region/Environment/Scenes/SceneManager.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs
@@ -204,6 +204,11 @@ namespace OpenSim.Region.Environment.Scenes
204 CurrentOrFirstScene.SavePrimsToXml2(filename); 204 CurrentOrFirstScene.SavePrimsToXml2(filename);
205 } 205 }
206 206
207 public void SaveNamedPrimsToXml2(string primName, string filename)
208 {
209 CurrentOrFirstScene.SaveNamedPrimsToXml2( primName, filename);
210 }
211
207 /// <summary> 212 /// <summary>
208 /// Load an xml file of prims in OpenSimulator's current 'xml2' file format to the current scene 213 /// Load an xml file of prims in OpenSimulator's current 'xml2' file format to the current scene
209 /// </summary> 214 /// </summary>