summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2011-07-05 14:11:16 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2011-07-05 14:11:16 -0400
commitb466e95b4de2b93c5ed8e1947284371f3e89c99c (patch)
treeb18dc3601eb7302a9315137b243c5e5beeb1f2f4 /indra
parentd8d1587d49e0fdc45c9f9d42f63870255dd36637 (diff)
merge cleanup
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llmeshrepository.cpp33
-rwxr-xr-x[-rw-r--r--]indra/newview/llmeshrepository.h3
2 files changed, 32 insertions, 4 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp
index 5648f33965..a06422a177 100755
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -1474,7 +1474,7 @@ void LLMeshUploadThread::wholeModelToLLSD(LLSD& dest, bool include_textures)
dest = result;
}
-void LLMeshUploadThread::queueUpModels()
+void LLMeshUploadThread::generateHulls()
{
for (instance_map::iterator iter = mInstance.begin(); iter != mInstance.end(); ++iter)
{
@@ -1529,7 +1529,7 @@ void LLMeshUploadThread::doWholeModelUpload()
}
else
{
- queueUpModels();
+ generateHulls();
LLSD full_model_data;
wholeModelToLLSD(full_model_data, true);
@@ -1551,6 +1551,35 @@ void LLMeshUploadThread::doWholeModelUpload()
mFinished = true;
}
+void LLMeshUploadThread::requestWholeModelFee()
+{
+ dump_num++;
+
+ mCurlRequest = new LLCurlRequest();
+
+ generateHulls();
+
+ LLSD model_data;
+ wholeModelToLLSD(model_data,false);
+ dump_llsd_to_file(model_data,make_dump_name("whole_model_fee_request_",dump_num));
+
+ mPendingUploads++;
+ LLCurlRequest::headers_t headers;
+ mCurlRequest->post(mWholeModelFeeCapability, headers, model_data,
+ new LLWholeModelFeeResponder(this,model_data, mFeeObserverHandle), mMeshUploadTimeOut);
+
+ do
+ {
+ mCurlRequest->process();
+ } while (mCurlRequest->getQueued() > 0);
+
+ delete mCurlRequest;
+ mCurlRequest = NULL;
+
+ // Currently a no-op.
+ mFinished = true;
+}
+
static LLFastTimer::DeclareTimer FTM_NOTIFY_MESH_LOADED("Notify Loaded");
static LLFastTimer::DeclareTimer FTM_NOTIFY_MESH_UNAVAILABLE("Notify Unavailable");
diff --git a/indra/newview/llmeshrepository.h b/indra/newview/llmeshrepository.h
index 0a2127ccb4..74a08a998f 100644..100755
--- a/indra/newview/llmeshrepository.h
+++ b/indra/newview/llmeshrepository.h
@@ -412,8 +412,7 @@ public:
void discard() ;
BOOL isDiscarded();
- // Queue up models for hull generation (viewer-side)
- void queueUpModels();
+ void generateHulls();
void doWholeModelUpload();
void requestWholeModelFee();