aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-01-08 08:39:02 -0700
committerMcCabe Maxsted2010-01-08 08:39:02 -0700
commit66a5b88375154041b85bd1bdc4a3c7fe080b07e5 (patch)
treed1ac4c692952046459bef80eeaa5adb72ffceea0 /linden
parentFixed GStreamer missing libpng12-0.dll (TODO: update gstreamer) (diff)
downloadmeta-impy-66a5b88375154041b85bd1bdc4a3c7fe080b07e5.zip
meta-impy-66a5b88375154041b85bd1bdc4a3c7fe080b07e5.tar.gz
meta-impy-66a5b88375154041b85bd1bdc4a3c7fe080b07e5.tar.bz2
meta-impy-66a5b88375154041b85bd1bdc4a3c7fe080b07e5.tar.xz
Applied SNOW-378: debug setting to compile inventory scripts in Mono
Diffstat (limited to 'linden')
-rw-r--r--linden/doc/contributions.txt1
-rw-r--r--linden/indra/newview/app_settings/settings.xml11
-rw-r--r--linden/indra/newview/llpreviewscript.cpp9
3 files changed, 20 insertions, 1 deletions
diff --git a/linden/doc/contributions.txt b/linden/doc/contributions.txt
index ff433c4..7b7d313 100644
--- a/linden/doc/contributions.txt
+++ b/linden/doc/contributions.txt
@@ -240,6 +240,7 @@ Hamncheese Omlet
240HappySmurf Papp 240HappySmurf Papp
241 CT-193 241 CT-193
242Henri Beauchamp 242Henri Beauchamp
243 SNOW-378
243 VWR-1320 244 VWR-1320
244 VWR-1406 245 VWR-1406
245 VWR-4157 246 VWR-4157
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 945f241..7194dac 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -8365,6 +8365,17 @@
8365 <key>Value</key> 8365 <key>Value</key>
8366 <integer>0</integer> 8366 <integer>0</integer>
8367 </map> 8367 </map>
8368 <key>SaveInventoryScriptsAsMono</key>
8369 <map>
8370 <key>Comment</key>
8371 <string>When editing and saving a script in inventory, configure it to compile as mono when dragged into a task</string>
8372 <key>Persist</key>
8373 <integer>1</integer>
8374 <key>Type</key>
8375 <string>Boolean</string>
8376 <key>Value</key>
8377 <real>0</real>
8378 </map>
8368 <key>SaveMinidump</key> 8379 <key>SaveMinidump</key>
8369 <map> 8380 <map>
8370 <key>Comment</key> 8381 <key>Comment</key>
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,
1418 llinfos << "Update Agent Inventory via capability" << llendl; 1418 llinfos << "Update Agent Inventory via capability" << llendl;
1419 LLSD body; 1419 LLSD body;
1420 body["item_id"] = item_id; 1420 body["item_id"] = item_id;
1421 body["target"] = "lsl2"; 1421 if (gSavedSettings.getBOOL("SaveInventoryScriptsAsMono"))
1422 {
1423 body["target"] = "mono";
1424 }
1425 else
1426 {
1427 body["target"] = "lsl2";
1428 }
1422 LLHTTPClient::post(url, body, new LLUpdateAgentInventoryResponder(body, filename, LLAssetType::AT_LSL_TEXT)); 1429 LLHTTPClient::post(url, body, new LLUpdateAgentInventoryResponder(body, filename, LLAssetType::AT_LSL_TEXT));
1423} 1430}
1424 1431