summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewscript.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2026-03-26 14:20:52 -0700
committerRider Linden <rider@lindenlab.com>2026-03-26 14:20:52 -0700
commitb194750f29398c900adfc8463dbf85b90e445ebb (patch)
treea2d1c27318456209b89bad069e9921b93b830260 /indra/newview/llpreviewscript.cpp
parentb45bb3186fa28bd2ebbdf8e328f3e239ee5eb4d8 (diff)
Some followup CR changes.
Diffstat (limited to 'indra/newview/llpreviewscript.cpp')
-rw-r--r--indra/newview/llpreviewscript.cpp5
1 files changed, 3 insertions, 2 deletions
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<LLLiveLSLEditor> editor, const LLSD& experience )