diff options
author | Seth ProductEngine <slitovchuk@productengine.com> | 2011-06-29 22:03:29 +0300 |
---|---|---|
committer | Seth ProductEngine <slitovchuk@productengine.com> | 2011-06-29 22:03:29 +0300 |
commit | e4b12b83e8721e0856af0305f6cee46cd6092024 (patch) | |
tree | 8d63de0e773cb523fc613b74dbd70a78bc9f2cf8 /indra/newview/llmeshrepository.cpp | |
parent | 0c05ea2740b63c824fba2bab37f67ca2188f0d07 (diff) |
SH-1725 WIP Added upload permissions and fee requests to Upload Model Wizard.
- Enabled warning for users without upload permissions.
- Enabled "Calculate weights & fee" button.
- Temporarily enabled to upload meshes if upload permission capability request has failed.
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rwxr-xr-x | indra/newview/llmeshrepository.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 743a8d53ed..31c2d34b8d 100755 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -577,13 +577,14 @@ public: mThread->mPendingUploads--; dump_llsd_to_file(cc,make_dump_name("whole_model_fee_response_",dump_num)); + LLWholeModelFeeObserver* observer = mObserverHandle.get(); + if (isGoodStatus(status) && cc["state"].asString() == "upload") { llinfos << "fee request succeeded" << llendl; mThread->mWholeModelUploadURL = cc["uploader"].asString(); - LLWholeModelFeeObserver* observer = mObserverHandle.get(); if (observer) { S32 fee = cc["upload_price"].asInteger(); @@ -597,6 +598,11 @@ public: llwarns << "fee request failed" << llendl; log_upload_error(status,cc,"fee",mModelData["name"]); mThread->mWholeModelUploadURL = ""; + + if (observer) + { + observer->setModelPhysicsFeeErrorStatus(status, reason); + } } } |