From b194750f29398c900adfc8463dbf85b90e445ebb Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Thu, 26 Mar 2026 14:20:52 -0700 Subject: Some followup CR changes. --- indra/llinventory/llinventory.cpp | 9 +-------- indra/newview/llpreviewscript.cpp | 5 +++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/indra/llinventory/llinventory.cpp b/indra/llinventory/llinventory.cpp index 14bd7db617..416b5efccb 100644 --- a/indra/llinventory/llinventory.cpp +++ b/indra/llinventory/llinventory.cpp @@ -1535,14 +1535,7 @@ bool LLInventoryCategory::importLegacyStream(std::istream& input_stream) { setFavorite(false); } - if (metadata.has("script") && metadata["script"].has("runtime")) - { - setRuntime(metadata["script"]["runtime"].asString()); - } - else - { - setRuntime(std::string()); - } + setRuntime(std::string()); } else diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index 536ee73d5e..31909116c7 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -2739,8 +2739,9 @@ void LLLiveLSLEditor::onCompileTargetChanged() { mScriptEd->mCompileTarget->setEnabled(have_script_upload_cap(mObjectUUID)); mScriptEd->enableSave(getIsModifiable()); - - mScriptEd->processKeywords(mScriptEd->mCompileTarget->getValue().asString() == "luau"); + bool is_lua = mScriptEd->mCompileTarget->getValue().asString() == "luau"; + mScriptEd->mEditor->setLuauLanguage(is_lua); + mScriptEd->processKeywords(is_lua); } void LLLiveLSLEditor::setAssociatedExperience( LLHandle editor, const LLSD& experience ) -- cgit v1.3