aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-12-06 00:38:18 +0000
committerJustin Clark-Casey (justincc)2013-12-06 00:38:18 +0000
commitbb4f4d9480df4c17ea31288c069993305c7e1582 (patch)
tree6a105a0f6e655b0c617fe08d0164d3e3bb6e5c8e /OpenSim/Region
parentProperly set InventoryType.Snapshot when a snapshot is uploaded (diff)
downloadopensim-SC_OLD-bb4f4d9480df4c17ea31288c069993305c7e1582.zip
opensim-SC_OLD-bb4f4d9480df4c17ea31288c069993305c7e1582.tar.gz
opensim-SC_OLD-bb4f4d9480df4c17ea31288c069993305c7e1582.tar.bz2
opensim-SC_OLD-bb4f4d9480df4c17ea31288c069993305c7e1582.tar.xz
minor: Use enums for setting inv/asset types on data upload rather than magic numbers
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
index 66d2138..a4fe81c 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
@@ -498,8 +498,8 @@ namespace OpenSim.Region.ClientStack.Linden
498 498
499 if (inventoryType == "sound") 499 if (inventoryType == "sound")
500 { 500 {
501 inType = 1; 501 inType = (sbyte)InventoryType.Sound;
502 assType = 1; 502 assType = (sbyte)AssetType.Sound;
503 } 503 }
504 else if (inventoryType == "snapshot") 504 else if (inventoryType == "snapshot")
505 { 505 {
@@ -507,19 +507,19 @@ namespace OpenSim.Region.ClientStack.Linden
507 } 507 }
508 else if (inventoryType == "animation") 508 else if (inventoryType == "animation")
509 { 509 {
510 inType = 19; 510 inType = (sbyte)InventoryType.Animation;
511 assType = 20; 511 assType = (sbyte)AssetType.Animation;
512 } 512 }
513 else if (inventoryType == "wearable") 513 else if (inventoryType == "wearable")
514 { 514 {
515 inType = 18; 515 inType = (sbyte)InventoryType.Wearable;
516 switch (assetType) 516 switch (assetType)
517 { 517 {
518 case "bodypart": 518 case "bodypart":
519 assType = 13; 519 assType = (sbyte)AssetType.Bodypart;
520 break; 520 break;
521 case "clothing": 521 case "clothing":
522 assType = 5; 522 assType = (sbyte)AssetType.Clothing;
523 break; 523 break;
524 } 524 }
525 } 525 }