From 6ebc8dc69f6a972d0b83057beaf352d9b6b1a72b Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> Date: Thu, 27 Aug 2026 19:33:52 +0300 Subject: #1841 Fix leap command --leap is mapped to --set LeapCommand --- indra/newview/llcommandlineparser.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/indra/newview/llcommandlineparser.cpp b/indra/newview/llcommandlineparser.cpp index 7e7d528199..7e1f85aff1 100644 --- a/indra/newview/llcommandlineparser.cpp +++ b/indra/newview/llcommandlineparser.cpp @@ -614,7 +614,14 @@ void setControlValueCB(const LLCommandLineParser::token_vector_t& value, else if (ctrl->isType(TYPE_LLSD)) { // Command-line LLSD should support a notation format string - ctrl->setValueFromNotation(onevalue(option, value), false); + // Note that LeapCommand is an TYPE_LLSD, but generaly is not a notation string, + // so keep a fallback to saving value directly. + // To preserve pre-setValueFromNotation, everything has a fallback. + std::string strvalue = onevalue(option, value); + if (!ctrl->setValueFromNotation(strvalue, false)) + { + ctrl->setValue(LLSD::String(strvalue), false); + } } else { -- cgit v1.3