diff options
author | MW | 2008-07-01 19:23:45 +0000 |
---|---|---|
committer | MW | 2008-07-01 19:23:45 +0000 |
commit | c9fe500212cf8b8231ef0604a1f577e9bbedfcbe (patch) | |
tree | 4515ef7ae75a913ff2172c5ad2d3be747ffc893d /OpenSim/Region/Application/OpenSim.cs | |
parent | Mantis#1640. Thank you, Chernega for a patch that addresses: (diff) | |
download | opensim-SC-c9fe500212cf8b8231ef0604a1f577e9bbedfcbe.zip opensim-SC-c9fe500212cf8b8231ef0604a1f577e9bbedfcbe.tar.gz opensim-SC-c9fe500212cf8b8231ef0604a1f577e9bbedfcbe.tar.bz2 opensim-SC-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 '')
-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 | ||