diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-02-09 11:32:02 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-02-09 11:44:06 -0500 |
commit | 8f9acfd71f7cc2b6295404c8fb270bb4b83f5626 (patch) | |
tree | c9f38063e7e1731de9f803b812c9e1ca588fa0b5 /indra/newview/llfloaterluadebug.cpp | |
parent | 629aff3a53d887fcc83c39ce5f757e0142d6090a (diff) |
Make LLFloaterLUADebug store a persistent LuaState.
That means that as you use the floater, variables that you assign and
functions that you define are available to subsequent Lua chunks.
Diffstat (limited to 'indra/newview/llfloaterluadebug.cpp')
-rw-r--r-- | indra/newview/llfloaterluadebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llfloaterluadebug.cpp b/indra/newview/llfloaterluadebug.cpp index b2c001817f..d7b46eaa71 100644 --- a/indra/newview/llfloaterluadebug.cpp +++ b/indra/newview/llfloaterluadebug.cpp @@ -77,7 +77,7 @@ void LLFloaterLUADebug::onExecuteClicked() mResultOutput->setValue(""); std::string cmd = mLineInput->getText(); - LLLUAmanager::runScriptLine(cmd, [this](int count, const LLSD& result) + LLLUAmanager::runScriptLine(mState, cmd, [this](int count, const LLSD& result) { completion(count, result); }); @@ -107,7 +107,7 @@ void LLFloaterLUADebug::runSelectedScript(const std::vector<std::string> &filena if (!filepath.empty()) { mScriptPath->setText(filepath); - LLLUAmanager::runScriptFile(filepath, [this](int count, const LLSD& result) + LLLUAmanager::runScriptFile(mState, filepath, [this](int count, const LLSD& result) { completion(count, result); }); |