diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs index 90ac8ce..9982556 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | |||
@@ -482,7 +482,9 @@ namespace OpenSim.Region.ClientStack.Linden | |||
482 | cost = textures_cost; | 482 | cost = textures_cost; |
483 | } | 483 | } |
484 | else | 484 | else |
485 | { | ||
485 | cost = (uint)mm.UploadCharge; | 486 | cost = (uint)mm.UploadCharge; |
487 | } | ||
486 | 488 | ||
487 | if (!mm.UploadCovered(client.AgentId, (int)cost)) | 489 | if (!mm.UploadCovered(client.AgentId, (int)cost)) |
488 | { | 490 | { |
@@ -505,14 +507,9 @@ namespace OpenSim.Region.ClientStack.Linden | |||
505 | UUID parentFolder = llsdRequest.folder_id; | 507 | UUID parentFolder = llsdRequest.folder_id; |
506 | string uploaderPath = Util.RandomClass.Next(5000, 8000).ToString("0000"); | 508 | string uploaderPath = Util.RandomClass.Next(5000, 8000).ToString("0000"); |
507 | 509 | ||
508 | uint uploadCost = cost; | ||
509 | // don't charge for meshs until we done them | ||
510 | if (llsdRequest.asset_type == "mesh") | ||
511 | uploadCost = 0; | ||
512 | |||
513 | AssetUploaderWithCost uploader = | 510 | AssetUploaderWithCost uploader = |
514 | new AssetUploaderWithCost(assetName, assetDes, newAsset, newInvItem, parentFolder, llsdRequest.inventory_type, | 511 | new AssetUploaderWithCost(assetName, assetDes, newAsset, newInvItem, parentFolder, llsdRequest.inventory_type, |
515 | llsdRequest.asset_type, capsBase + uploaderPath, m_HostCapsObj.HttpListener, m_dumpAssetsToFile, uploadCost); | 512 | llsdRequest.asset_type, capsBase + uploaderPath, m_HostCapsObj.HttpListener, m_dumpAssetsToFile, cost); |
516 | 513 | ||
517 | m_HostCapsObj.HttpListener.AddStreamHandler( | 514 | m_HostCapsObj.HttpListener.AddStreamHandler( |
518 | new BinaryStreamHandler( | 515 | new BinaryStreamHandler( |