mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
* Remove all use of asset.InvType, as outlined in mailing list discussion
* This is stage 1, the field will be removed from AssetType and the assets table if this change doesn't prove problematic
This commit is contained in:
@@ -96,7 +96,6 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
|
||||
xtw.WriteElementString("name", asset.Name);
|
||||
xtw.WriteElementString("description", asset.Description);
|
||||
xtw.WriteElementString("asset-type", asset.Type.ToString());
|
||||
xtw.WriteElementString("inventory-type", asset.InvType.ToString());
|
||||
|
||||
xtw.WriteEndElement();
|
||||
}
|
||||
|
||||
@@ -109,7 +109,6 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
|
||||
metadata.Name = reader.ReadElementString("name");
|
||||
metadata.Description = reader.ReadElementString("description");
|
||||
metadata.AssetType = Convert.ToSByte(reader.ReadElementString("asset-type"));
|
||||
metadata.AssetType = Convert.ToSByte(reader.ReadElementString("inventory-type"));
|
||||
|
||||
m_metadata[filename] = metadata;
|
||||
|
||||
@@ -161,7 +160,6 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
|
||||
AssetBase asset = new AssetBase(new LLUUID(filename), metadata.Name);
|
||||
asset.Description = metadata.Description;
|
||||
asset.Type = metadata.AssetType;
|
||||
asset.InvType = metadata.InventoryType;
|
||||
asset.Data = data;
|
||||
|
||||
m_cache.AddAsset(asset);
|
||||
@@ -182,7 +180,6 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
|
||||
public string Name;
|
||||
public string Description;
|
||||
public sbyte AssetType;
|
||||
public sbyte InventoryType;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user