Skip to content

#1841 Fix leap command - #6209

Merged
akleshchev merged 2 commits into
release/26.4from
andreyk/viewer_1814_2
Aug 27, 2026
Merged

#1841 Fix leap command#6209
akleshchev merged 2 commits into
release/26.4from
andreyk/viewer_1814_2

Conversation

@akleshchev

Copy link
Copy Markdown
Contributor

--leap is mapped to --set LeapCommand, but a path gets passed by QA, not an LLSD

@akleshchev akleshchev changed the title #1814 Fix leap command #1841 Fix leap command Aug 27, 2026
@akleshchev
akleshchev force-pushed the andreyk/viewer_1814_2 branch from bd59a9b to 43dd618 Compare August 27, 2026 16:38
@akleshchev akleshchev linked an issue Aug 27, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts command-line parsing for settings of type TYPE_LLSD so --leap / LeapCommand works when QA passes a plain path string (not LLSD notation), aligning runtime behavior with how LeapCommand is used elsewhere in the viewer.

Changes:

  • Adds a fallback for TYPE_LLSD controls: try setValueFromNotation(), and if parsing fails, store the raw string as an LLSD::String.
  • Introduces an explanatory comment documenting why LeapCommand may not be LLSD notation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread indra/newview/llcommandlineparser.cpp
--leap is mapped to --set LeapCommand
@akleshchev
akleshchev force-pushed the andreyk/viewer_1814_2 branch from 5cc208a to 74d34a9 Compare August 27, 2026 18:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Suppressed comments (2)

indra/newview/llviewerwindow.cpp:3196

  • Typo/grammar in the log message: "an it returned" should be "and it returned" (helps searchability and professionalism in logs).
            LL_DEBUGS("Window") << "LLViewerWindow::handleKey - in 'traverse up' - no loops seen... just called keyboard_focus->handleKey an it returned false" << LL_ENDL;

indra/newview/llcommandlineparser.cpp:618

  • Spelling/grammar in this new comment: "generaly" -> "generally" and "an TYPE_LLSD" -> "a TYPE_LLSD".
                    // Note that LeapCommand is an TYPE_LLSD, but generaly is not a notation string,
                    // so keep a fallback to saving value directly.

Comment thread indra/newview/llviewerwindow.cpp Outdated
Comment thread indra/newview/llviewerwindow.cpp Outdated
Comment thread indra/newview/llviewerwindow.cpp Outdated
@akleshchev
akleshchev force-pushed the andreyk/viewer_1814_2 branch from 74d34a9 to 3fd6d74 Compare August 27, 2026 18:12
@akleshchev
akleshchev merged commit 3a97061 into release/26.4 Aug 27, 2026
11 checks passed
@akleshchev
akleshchev deleted the andreyk/viewer_1814_2 branch August 27, 2026 19:19
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Viewer does not properly remember Joystick Config option

3 participants