summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2011-05-12 10:17:08 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2011-05-12 10:17:08 -0400
commit7cad431c6e4ea920a998ac1d3cdf385722fe5f7b (patch)
treeb071de2ab6babf4851d99f0f9917228a247e89c4 /indra
parent4c169a57504bd0e0e1126389c989bedb878c7801 (diff)
small API change
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llmeshrepository.cpp11
-rwxr-xr-xindra/newview/llmeshrepository.h2
2 files changed, 7 insertions, 6 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp
index 9f302f9e57..3163f4f186 100755
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -1368,7 +1368,7 @@ void dumpLLSDToFile(LLSD& content, std::string& filename)
LLSDSerialize::toPrettyXML(content,of);
}
-LLSD LLMeshUploadThread::wholeModelToLLSD(bool include_textures)
+void LLMeshUploadThread::wholeModelToLLSD(LLSD& dest, bool include_textures)
{
// TODO where do textures go?
@@ -1470,11 +1470,11 @@ LLSD LLMeshUploadThread::wholeModelToLLSD(bool include_textures)
}
result["asset_resources"] = res;
-#if 0
+#if 1
dumpLLSDToFile(result,std::string("whole_model.xml"));
#endif
-
- return result;
+
+ dest = result;
}
void LLMeshUploadThread::doWholeModelUpload()
@@ -1525,7 +1525,8 @@ void LLMeshUploadThread::doWholeModelUpload()
}
bool do_include_textures = false; // not needed for initial cost/validation check.
- LLSD model_data = wholeModelToLLSD(do_include_textures);
+ LLSD model_data;
+ wholeModelToLLSD(model_data, do_include_textures);
mPendingUploads++;
LLCurlRequest::headers_t headers;
diff --git a/indra/newview/llmeshrepository.h b/indra/newview/llmeshrepository.h
index 9d8119dc48..9460c0c048 100755
--- a/indra/newview/llmeshrepository.h
+++ b/indra/newview/llmeshrepository.h
@@ -425,7 +425,7 @@ public:
void doWholeModelUpload();
void doIterativeUpload();
- LLSD wholeModelToLLSD(bool include_textures);
+ void wholeModelToLLSD(LLSD& dest, bool include_textures);
};
class LLMeshRepository