diff options
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llpreviewscript.cpp | 9 |
2 files changed, 19 insertions, 1 deletions
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 | ||