From c9fe500212cf8b8231ef0604a1f577e9bbedfcbe Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 1 Jul 2008 19:23:45 +0000 Subject: Added "save-prims-xml2 ", 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 --- OpenSim/Region/Application/OpenSim.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OpenSim/Region/Application') 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 } break; + case "save-prims-xml2": + if (cmdparams.Length > 1) + { + m_sceneManager.SaveNamedPrimsToXml2(cmdparams[0], cmdparams[1]); + } + else + { + m_sceneManager.SaveNamedPrimsToXml2("Primitive", DEFAULT_PRIM_BACKUP_FILENAME); + } + break; + case "load-oar": m_log.Error("[CONSOLE]: Don't use me - I haven't yet been sufficiently implemented!"); -- cgit v1.1