diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs index 9fc6ec4..586d98e 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs | |||
@@ -145,17 +145,8 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
145 | { | 145 | { |
146 | //m_log.DebugFormat("[ARCHIVER]: Saving {0} {1}, {2}", entity.Name, entity.UUID, entity.GetType()); | 146 | //m_log.DebugFormat("[ARCHIVER]: Saving {0} {1}, {2}", entity.Name, entity.UUID, entity.GetType()); |
147 | 147 | ||
148 | Vector3 position = sceneObject.AbsolutePosition; | ||
149 | |||
150 | string serializedObject = m_serialiser.SerializeGroupToXml2(sceneObject); | 148 | string serializedObject = m_serialiser.SerializeGroupToXml2(sceneObject); |
151 | string filename | 149 | m_archiveWriter.WriteFile(ArchiveHelpers.CreateObjectPath(sceneObject), serializedObject); |
152 | = string.Format( | ||
153 | "{0}{1}_{2:000}-{3:000}-{4:000}__{5}.xml", | ||
154 | ArchiveConstants.OBJECTS_PATH, sceneObject.Name, | ||
155 | Math.Round(position.X), Math.Round(position.Y), Math.Round(position.Z), | ||
156 | sceneObject.UUID); | ||
157 | |||
158 | m_archiveWriter.WriteFile(filename, serializedObject); | ||
159 | } | 150 | } |
160 | 151 | ||
161 | m_log.InfoFormat("[ARCHIVER]: Added scene objects to archive."); | 152 | m_log.InfoFormat("[ARCHIVER]: Added scene objects to archive."); |