diff options
author | Justin Clarke Casey | 2008-07-04 20:18:00 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-07-04 20:18:00 +0000 |
commit | e45fa5d32d5de764baaf5b2f9329d2a7a9225e61 (patch) | |
tree | b6a17f5cd6005e57f10958f627d100db7ccb2862 /OpenSim/Region | |
parent | * On archiving, analyze body parts and save textures referenced from them (diff) | |
download | opensim-SC-e45fa5d32d5de764baaf5b2f9329d2a7a9225e61.zip opensim-SC-e45fa5d32d5de764baaf5b2f9329d2a7a9225e61.tar.gz opensim-SC-e45fa5d32d5de764baaf5b2f9329d2a7a9225e61.tar.bz2 opensim-SC-e45fa5d32d5de764baaf5b2f9329d2a7a9225e61.tar.xz |
* extend archiving asset analysis to clothing
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequestPreparation.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequestPreparation.cs b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequestPreparation.cs index 39ab058..2a1f695 100644 --- a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequestPreparation.cs +++ b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveWriteRequestPreparation.cs | |||
@@ -33,7 +33,7 @@ using OpenSim.Region.Environment.Modules.World.Terrain; | |||
33 | using OpenSim.Region.Environment.Scenes; | 33 | using OpenSim.Region.Environment.Scenes; |
34 | using System.Collections.Generic; | 34 | using System.Collections.Generic; |
35 | using System.Reflection; | 35 | using System.Reflection; |
36 | using System.Text; | 36 | //using System.Text; |
37 | using System.Threading; | 37 | using System.Threading; |
38 | using libsecondlife; | 38 | using libsecondlife; |
39 | using log4net; | 39 | using log4net; |
@@ -155,18 +155,18 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver | |||
155 | { | 155 | { |
156 | assetUuids[tii.AssetID] = 1; | 156 | assetUuids[tii.AssetID] = 1; |
157 | 157 | ||
158 | if ((int)AssetType.Bodypart == tii.Type) | 158 | if ((int)AssetType.Bodypart == tii.Type || ((int)AssetType.Clothing == tii.Type)) |
159 | { | 159 | { |
160 | AssetBase bodypartAsset = GetAsset(tii.AssetID); | 160 | AssetBase assetBase = GetAsset(tii.AssetID); |
161 | m_log.Debug(new System.Text.ASCIIEncoding().GetString(bodypartAsset.Data)); | 161 | //m_log.Debug(new System.Text.ASCIIEncoding().GetString(bodypartAsset.Data)); |
162 | AssetBodypart bp = new AssetBodypart(bodypartAsset.Data); | 162 | AssetWearable wearableAsset = new AssetBodypart(assetBase.Data); |
163 | bp.Decode(); | 163 | wearableAsset.Decode(); |
164 | 164 | ||
165 | m_log.DebugFormat("[ARCHIVER]: Body part {0} references {1} assets", bp.AssetID, bp.Textures.Count); | 165 | m_log.DebugFormat("[ARCHIVER]: Wearable asset {0} references {1} assets", tii.AssetID, wearableAsset.Textures.Count); |
166 | 166 | ||
167 | foreach (LLUUID uuid in bp.Textures.Values) | 167 | foreach (LLUUID uuid in wearableAsset.Textures.Values) |
168 | { | 168 | { |
169 | m_log.DebugFormat("[ARCHIVER]: Got bodypart uuid {0}", uuid); | 169 | //m_log.DebugFormat("[ARCHIVER]: Got bodypart uuid {0}", uuid); |
170 | assetUuids[uuid] = 1; | 170 | assetUuids[uuid] = 1; |
171 | } | 171 | } |
172 | } | 172 | } |