diff options
author | Charles Krinke | 2008-04-10 15:32:09 +0000 |
---|---|---|
committer | Charles Krinke | 2008-04-10 15:32:09 +0000 |
commit | 4bdb4a2646bc0894f15f2952912ee47c3922d909 (patch) | |
tree | cd8dbd93aa71fdae308cf80dda74cc872515337b | |
parent | * Minor: get CreateNewUserInventory() to return true on success (diff) | |
download | opensim-SC-4bdb4a2646bc0894f15f2952912ee47c3922d909.zip opensim-SC-4bdb4a2646bc0894f15f2952912ee47c3922d909.tar.gz opensim-SC-4bdb4a2646bc0894f15f2952912ee47c3922d909.tar.bz2 opensim-SC-4bdb4a2646bc0894f15f2952912ee47c3922d909.tar.xz |
Thank you kindly, A_Biondi for a patch that:
Handles the CreateItem cap request for all wearables,
setting the proper value in inType and assType.
-rw-r--r-- | OpenSim/Framework/Communications/Capabilities/Caps.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index 36bebe8..d859227 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs | |||
@@ -567,6 +567,19 @@ namespace OpenSim.Region.Capabilities | |||
567 | inType = 19; | 567 | inType = 19; |
568 | assType = 20; | 568 | assType = 20; |
569 | } | 569 | } |
570 | else if (inventoryType == "wearable") | ||
571 | { | ||
572 | inType = 18; | ||
573 | switch (assetType) | ||
574 | { | ||
575 | case "bodypart": | ||
576 | assType = 13; | ||
577 | break; | ||
578 | case "clothing": | ||
579 | assType = 5; | ||
580 | break; | ||
581 | } | ||
582 | } | ||
570 | 583 | ||
571 | AssetBase asset; | 584 | AssetBase asset; |
572 | asset = new AssetBase(); | 585 | asset = new AssetBase(); |