diff options
| author | Erik Kundiman <erik@megapahit.org> | 2026-08-09 19:04:50 +0800 |
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2026-08-09 19:04:50 +0800 |
| commit | a2f28aa0bdb8c9a657cfe9767b141e16696538f8 (patch) | |
| tree | 339fe952d4bd53356df301c5478cfee4d92e4d7d /indra/newview/lltoolpie.cpp | |
| parent | 80082370d5ee5e9f039759f2000dcf74d1b076e5 (diff) | |
https://megapahit.com/show_bug.cgi?id=184
Diffstat (limited to 'indra/newview/lltoolpie.cpp')
| -rw-r--r-- | indra/newview/lltoolpie.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp index 0a69be528f..a2122d0da5 100644 --- a/indra/newview/lltoolpie.cpp +++ b/indra/newview/lltoolpie.cpp @@ -237,6 +237,7 @@ bool LLToolPie::handleScrollHWheel(S32 x, S32 y, S32 clicks) // True if you selected an object. bool LLToolPie::handleLeftClickPick() { + static LLCachedControl<bool> prevent_click_to_sit(gSavedSettings, "PreventClickToSit"); S32 x = mPick.mMousePt.mX; S32 y = mPick.mMousePt.mY; MASK mask = mPick.mKeyMask; @@ -303,7 +304,7 @@ bool LLToolPie::handleLeftClickPick() break; case CLICK_ACTION_SIT: { - if (isAgentAvatarValid() && !gAgentAvatarp->isSitting()) // agent not already sitting + if (!prevent_click_to_sit && isAgentAvatarValid() && !gAgentAvatarp->isSitting()) // agent not already sitting { handle_object_sit_or_stand(); // put focus in world when sitting on an object @@ -498,6 +499,7 @@ U8 final_click_action(LLViewerObject* obj) ECursorType LLToolPie::cursorFromObject(LLViewerObject* object) { + static LLCachedControl<bool> prevent_click_to_sit(gSavedSettings, "PreventClickToSit"); LLViewerObject* parent = NULL; if (object) { @@ -509,7 +511,7 @@ ECursorType LLToolPie::cursorFromObject(LLViewerObject* object) { case CLICK_ACTION_SIT: { - if (isAgentAvatarValid() && !gAgentAvatarp->isSitting()) // not already sitting? + if (!prevent_click_to_sit && isAgentAvatarValid() && !gAgentAvatarp->isSitting()) // not already sitting? { cursor = UI_CURSOR_TOOLSIT; } |
