diff options
author | Justin Clarke Casey | 2008-06-05 00:29:02 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-06-05 00:29:02 +0000 |
commit | 73c115702777b62233737cf0de4e8ec4f3878f19 (patch) | |
tree | 5d8ec2a260f9341df763bcb391cf27a37ec35bcf /OpenSim/Region/Environment/Modules/World/Archiver/AssetsDearchiver.cs | |
parent | * Change archiver 'textures' dir back to 'assets' (diff) | |
download | opensim-SC-73c115702777b62233737cf0de4e8ec4f3878f19.zip opensim-SC-73c115702777b62233737cf0de4e8ec4f3878f19.tar.gz opensim-SC-73c115702777b62233737cf0de4e8ec4f3878f19.tar.bz2 opensim-SC-73c115702777b62233737cf0de4e8ec4f3878f19.tar.xz |
* exprimental: Export and reimport all items within a prim except Objects
* Not yet ready for public use
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Archiver/AssetsDearchiver.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Archiver/AssetsDearchiver.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/AssetsDearchiver.cs b/OpenSim/Region/Environment/Modules/World/Archiver/AssetsDearchiver.cs index 9e63ccf..0c56ae3 100644 --- a/OpenSim/Region/Environment/Modules/World/Archiver/AssetsDearchiver.cs +++ b/OpenSim/Region/Environment/Modules/World/Archiver/AssetsDearchiver.cs | |||
@@ -97,7 +97,6 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver | |||
97 | reader.ReadStartElement("assets"); | 97 | reader.ReadStartElement("assets"); |
98 | reader.Read(); | 98 | reader.Read(); |
99 | 99 | ||
100 | m_log.DebugFormat("next node {0}", reader.Name); | ||
101 | while (reader.Name.Equals("asset")) | 100 | while (reader.Name.Equals("asset")) |
102 | { | 101 | { |
103 | reader.Read(); | 102 | reader.Read(); |
@@ -150,11 +149,16 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver | |||
150 | { | 149 | { |
151 | AssetMetadata metadata = m_metadata[filename]; | 150 | AssetMetadata metadata = m_metadata[filename]; |
152 | 151 | ||
153 | string rawId = filename.Remove(filename.Length - ArchiveConstants.TEXTURE_EXTENSION.Length); | 152 | string extension = String.Empty; |
153 | |||
154 | if ((sbyte)AssetType.Texture == metadata.AssetType) | ||
155 | { | ||
156 | filename = filename.Remove(filename.Length - ArchiveConstants.TEXTURE_EXTENSION.Length); | ||
157 | } | ||
154 | 158 | ||
155 | m_log.DebugFormat("[ARCHIVER]: Importing asset {0}", rawId); | 159 | m_log.DebugFormat("[ARCHIVER]: Importing asset {0}", filename); |
156 | 160 | ||
157 | AssetBase asset = new AssetBase(new LLUUID(rawId), metadata.Name); | 161 | AssetBase asset = new AssetBase(new LLUUID(filename), metadata.Name); |
158 | asset.Description = metadata.Description; | 162 | asset.Description = metadata.Description; |
159 | asset.Type = metadata.AssetType; | 163 | asset.Type = metadata.AssetType; |
160 | asset.InvType = metadata.InventoryType; | 164 | asset.InvType = metadata.InventoryType; |