From 66a5b88375154041b85bd1bdc4a3c7fe080b07e5 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Fri, 8 Jan 2010 08:39:02 -0700 Subject: Applied SNOW-378: debug setting to compile inventory scripts in Mono --- linden/indra/newview/llpreviewscript.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'linden/indra/newview/llpreviewscript.cpp') diff --git a/linden/indra/newview/llpreviewscript.cpp b/linden/indra/newview/llpreviewscript.cpp index ccec75b..2718c2f 100644 --- a/linden/indra/newview/llpreviewscript.cpp +++ b/linden/indra/newview/llpreviewscript.cpp @@ -1418,7 +1418,14 @@ void LLPreviewLSL::uploadAssetViaCaps(const std::string& url, llinfos << "Update Agent Inventory via capability" << llendl; LLSD body; body["item_id"] = item_id; - body["target"] = "lsl2"; + if (gSavedSettings.getBOOL("SaveInventoryScriptsAsMono")) + { + body["target"] = "mono"; + } + else + { + body["target"] = "lsl2"; + } LLHTTPClient::post(url, body, new LLUpdateAgentInventoryResponder(body, filename, LLAssetType::AT_LSL_TEXT)); } -- cgit v1.1