minor: Use enums for setting inv/asset types on data upload rather than magic numbers

varregion
Justin Clark-Casey (justincc) 2013-12-06 00:38:18 +00:00
parent 16aaba77d4
commit bb4f4d9480
1 changed files with 7 additions and 7 deletions

View File

@ -498,8 +498,8 @@ namespace OpenSim.Region.ClientStack.Linden
if (inventoryType == "sound") if (inventoryType == "sound")
{ {
inType = 1; inType = (sbyte)InventoryType.Sound;
assType = 1; assType = (sbyte)AssetType.Sound;
} }
else if (inventoryType == "snapshot") else if (inventoryType == "snapshot")
{ {
@ -507,19 +507,19 @@ namespace OpenSim.Region.ClientStack.Linden
} }
else if (inventoryType == "animation") else if (inventoryType == "animation")
{ {
inType = 19; inType = (sbyte)InventoryType.Animation;
assType = 20; assType = (sbyte)AssetType.Animation;
} }
else if (inventoryType == "wearable") else if (inventoryType == "wearable")
{ {
inType = 18; inType = (sbyte)InventoryType.Wearable;
switch (assetType) switch (assetType)
{ {
case "bodypart": case "bodypart":
assType = 13; assType = (sbyte)AssetType.Bodypart;
break; break;
case "clothing": case "clothing":
assType = 5; assType = (sbyte)AssetType.Clothing;
break; break;
} }
} }