Skip to content

Commit 43879c3

Browse files
#3116 fix help output not displaying in Lua console
1 parent e3fbcaa commit 43879c3

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

indra/newview/llfloaterluadebug.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,17 @@ bool LLFloaterLUADebug::postBuild()
5858
.listen("LLFloaterLUADebug",
5959
[mResultOutput=mResultOutput](const LLSD& data)
6060
{
61-
LLCachedControl<bool> show_source_info(gSavedSettings, "LuaDebugShowSource", false);
62-
std::string source_info = show_source_info ? data["source_info"].asString() : "";
63-
mResultOutput->pasteTextWithLinebreaks(stringize(data["level"].asString(), source_info, data["msg"].asString()), true);
61+
if(data.has("msg"))
62+
{
63+
LLCachedControl<bool> show_source_info(gSavedSettings, "LuaDebugShowSource", false);
64+
std::string source_info = show_source_info ? data["source_info"].asString() : "";
65+
mResultOutput->pasteTextWithLinebreaks(stringize(data["level"].asString(), source_info, data["msg"].asString()), true);
66+
}
67+
else
68+
{
69+
//LL.leaphelp(), LL.help()
70+
mResultOutput->pasteTextWithLinebreaks(data.asString(), true);
71+
}
6472
mResultOutput->addLineBreakChar(true);
6573
return false;
6674
});

0 commit comments

Comments
 (0)