diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2026-09-21 16:25:29 +0300 |
|---|---|---|
| committer | Andrey Lihatskiy <118752495+marchcat@users.noreply.github.com> | 2026-09-21 18:59:39 +0300 |
| commit | 8a0daf6f5b800e12bf53e8cb687592ec7d6f9121 (patch) | |
| tree | ba583a9b203d2a3e9165869cd75dee3b70890c22 /indra | |
| parent | 89973b5c52a967e63aecb756966d109eef209a85 (diff) | |
#6232 Mark inventory scripts dirty when compiler changes
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llpreviewscript.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index fbe6fc3e40..9e209f3914 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -2045,6 +2045,7 @@ void LLPreviewLSL::saveIfNeeded(bool sync /*= true*/) mPendingUploads = 0; mScriptEd->mErrorList->deleteAllItems(); + mScriptEd->enableSave(false); mScriptEd->mEditor->makePristine(); if (sync) @@ -2081,6 +2082,7 @@ void LLPreviewLSL::saveIfNeeded(bool sync /*= true*/) void LLPreviewLSL::onCompileTargetChanged() { + mScriptEd->enableSave(true); bool is_lua = (mScriptEd->mCompileTarget->getValue().asString() == "luau"); mScriptEd->mEditor->setLuauLanguage(is_lua); mScriptEd->processKeywords(is_lua); |
