summaryrefslogtreecommitdiff
path: root/indra/newview/llmeshrepository.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rwxr-xr-xindra/newview/llmeshrepository.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp
index 9855a641ed..4673289094 100755
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -1424,10 +1424,11 @@ void LLMeshUploadThread::run()
void dumpLLSDToFile(const LLSD& content, std::string filename)
{
-#if 1
- std::ofstream of(filename.c_str());
- LLSDSerialize::toPrettyXML(content,of);
-#endif
+ if (gSavedSettings.getBOOL("MeshUploadLogXML"))
+ {
+ std::ofstream of(filename.c_str());
+ LLSDSerialize::toPrettyXML(content,of);
+ }
}
void LLMeshUploadThread::wholeModelToLLSD(LLSD& dest, bool include_textures)