diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2025-03-20 17:58:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-20 17:58:21 +0200 |
| commit | 62a196bf33aa4123cb37924f05d432bff22222ec (patch) | |
| tree | fe0e13ea3f0d4b07a31aea33f845c556955191d2 /indra/newview/llpreviewscript.cpp | |
| parent | e59d44dd829cf8df8c7db7b238aa224664caf16f (diff) | |
| parent | 078170a03c704e9b75cfc6499bfe84ec26456432 (diff) | |
Merge pull request #3781 from secondlife/marchcat/lua_editor
Lua editor: Keywords update
Diffstat (limited to 'indra/newview/llpreviewscript.cpp')
| -rw-r--r-- | indra/newview/llpreviewscript.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index 98c28ffadc..8273af35ab 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -1557,13 +1557,15 @@ std::string LLScriptEdContainer::getTmpFileName(const std::string& script_name) LLMD5 script_id_hash((const U8 *)script_id.c_str()); script_id_hash.hex_digest(script_id_hash_str); + std::string script_extension = mScriptEd->mEditor->getIsLuauLanguage() ? ".luau" : ".lsl"; + if (script_name.empty()) { - return std::string(LLFile::tmpdir()) + "sl_script_" + script_id_hash_str + ".lsl"; + return std::string(LLFile::tmpdir()) + "sl_script_" + script_id_hash_str + script_extension; } else { - return std::string(LLFile::tmpdir()) + "sl_script_" + script_name + "_" + script_id_hash_str + ".lsl"; + return std::string(LLFile::tmpdir()) + "sl_script_" + script_name + "_" + script_id_hash_str + script_extension; } } |
