diff options
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/Application/OpenSim.cs')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 60e00a2..4afe37b 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -401,6 +401,17 @@ namespace OpenSim | |||
401 | } | 401 | } |
402 | break; | 402 | break; |
403 | 403 | ||
404 | case "save-prims-xml2": | ||
405 | if (cmdparams.Length > 1) | ||
406 | { | ||
407 | m_sceneManager.SaveNamedPrimsToXml2(cmdparams[0], cmdparams[1]); | ||
408 | } | ||
409 | else | ||
410 | { | ||
411 | m_sceneManager.SaveNamedPrimsToXml2("Primitive", DEFAULT_PRIM_BACKUP_FILENAME); | ||
412 | } | ||
413 | break; | ||
414 | |||
404 | case "load-oar": | 415 | case "load-oar": |
405 | m_log.Error("[CONSOLE]: Don't use me - I haven't yet been sufficiently implemented!"); | 416 | m_log.Error("[CONSOLE]: Don't use me - I haven't yet been sufficiently implemented!"); |
406 | 417 | ||