summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterbvhpreview.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2015-06-30 17:11:10 -0700
committerRider Linden <rider@lindenlab.com>2015-06-30 17:11:10 -0700
commitddb63e7fb70eefea200fbb385efe86e50e5c1e12 (patch)
treebcb9e9cd8bd7094f2d4ec0f098735fd2935bb6b3 /indra/newview/llfloaterbvhpreview.cpp
parent08ef748cba55d5d950b224710c8592e94fcce5c7 (diff)
Initial checkin for uploading via coroutine.
Diffstat (limited to 'indra/newview/llfloaterbvhpreview.cpp')
-rwxr-xr-xindra/newview/llfloaterbvhpreview.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/indra/newview/llfloaterbvhpreview.cpp b/indra/newview/llfloaterbvhpreview.cpp
index 669ffa7c59..edc1421588 100755
--- a/indra/newview/llfloaterbvhpreview.cpp
+++ b/indra/newview/llfloaterbvhpreview.cpp
@@ -992,10 +992,20 @@ void LLFloaterBvhPreview::onBtnOK(void* userdata)
{
std::string name = floaterp->getChild<LLUICtrl>("name_form")->getValue().asString();
std::string desc = floaterp->getChild<LLUICtrl>("description_form")->getValue().asString();
- LLAssetStorage::LLStoreAssetCallback callback = NULL;
S32 expected_upload_cost = LLGlobalEconomy::Singleton::getInstance()->getPriceUpload();
- void *userdata = NULL;
- upload_new_resource(floaterp->mTransactionID, // tid
+#if 1
+ NewResourceUploadInfo::ptr_t assetUpdloadInfo(new NewResourceUploadInfo(name, desc, 0,
+ LLFolderType::FT_NONE, LLInventoryType::IT_ANIMATION,
+ LLFloaterPerms::getNextOwnerPerms("Uploads"), LLFloaterPerms::getGroupPerms("Uploads"), LLFloaterPerms::getEveryonePerms("Uploads"),
+ name, expected_upload_cost));
+
+ upload_new_resource(floaterp->mTransactionID, LLAssetType::AT_ANIMATION,
+ assetUpdloadInfo);
+#else
+ LLAssetStorage::LLStoreAssetCallback callback = NULL;
+ void *userdata = NULL;
+
+ upload_new_resource(floaterp->mTransactionID, // tid
LLAssetType::AT_ANIMATION,
name,
desc,
@@ -1005,7 +1015,7 @@ void LLFloaterBvhPreview::onBtnOK(void* userdata)
LLFloaterPerms::getNextOwnerPerms("Uploads"), LLFloaterPerms::getGroupPerms("Uploads"), LLFloaterPerms::getEveryonePerms("Uploads"),
name,
callback, expected_upload_cost, userdata);
-
+#endif
}
else
{