diff options
| author | Rider Linden <rider@lindenlab.com> | 2026-03-03 11:11:02 -0800 |
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2026-03-03 11:11:02 -0800 |
| commit | 0c289bf27dcc40b9f41152b60408fa047ccf6f65 (patch) | |
| tree | 44decc732e37674d180668ac37bfc704d002b69e /indra/newview/llpanelcontents.cpp | |
| parent | bb233c070dedbbd3b7ec014a0679a0021958e775 (diff) | |
Pass desired script type as the subtype for a new script.
Diffstat (limited to 'indra/newview/llpanelcontents.cpp')
| -rw-r--r-- | indra/newview/llpanelcontents.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llpanelcontents.cpp b/indra/newview/llpanelcontents.cpp index 2f060ac2e6..2e4dc88217 100644 --- a/indra/newview/llpanelcontents.cpp +++ b/indra/newview/llpanelcontents.cpp @@ -241,7 +241,7 @@ void LLPanelContents::onClickNewScript(void *userdata) std::string desc; LLViewerAssetType::generateDescriptionFor(LLAssetType::AT_LSL_TEXT, desc); - U8 script_language = LANG_ID_LSL; + U8 script_language = SST_LSL; LLUUID template_id; LLViewerRegion* region = object->getRegion(); @@ -251,7 +251,7 @@ void LLPanelContents::onClickNewScript(void *userdata) region->getSimulatorFeatures(simulatorFeatures); if (simulatorFeatures["LuaScriptsEnabled"].asBoolean()) { - script_language = LANG_ID_LUA; + script_language = SST_LUA; } } // *TODO* Get a template ID and script_language based on user preferences. Template ID is the inventory item UUID of a script @@ -268,9 +268,9 @@ void LLPanelContents::onClickNewScript(void *userdata) "New Script", desc, LLSaleInfo::DEFAULT, - LLInventoryItemFlags::II_FLAGS_NONE, + LLInventoryItemFlags::II_FLAGS_SUBTYPE_MASK & script_language, time_corrected()); - object->saveScript(new_item, true, true, script_language, template_id); + object->saveScript(new_item, true, true, template_id); std::string name = new_item->getName(); |
