diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index a49e5a8f1..5be63db93 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -10172,7 +10172,7 @@ Type Boolean Value - 1 + 0 PlayIMSound diff --git a/indra/newview/ascentprefssys.cpp b/indra/newview/ascentprefssys.cpp index 632939f26..11fa26b94 100644 --- a/indra/newview/ascentprefssys.cpp +++ b/indra/newview/ascentprefssys.cpp @@ -100,6 +100,7 @@ private: BOOL mPrivateLookAt; BOOL mShowLookAt; BOOL mRevokePermsOnStandUp; + BOOL mDisableClickSit; }; @@ -189,6 +190,7 @@ void LLPrefsAscentSysImpl::refreshValues() mPrivateLookAt = gSavedSettings.getBOOL("PrivateLookAt"); mShowLookAt = LLHUDEffectLookAt::sDebugLookAt; mRevokePermsOnStandUp = gSavedSettings.getBOOL("RevokePermsOnStandUp"); + mDisableClickSit = gSavedSettings.getBOOL("DisableClickSit"); } void LLPrefsAscentSysImpl::refresh() @@ -280,6 +282,7 @@ void LLPrefsAscentSysImpl::refresh() childSetValue("private_look_at_check", mPrivateLookAt); childSetValue("show_look_at_check", mShowLookAt); childSetValue("revoke_perms_on_stand_up_check", mRevokePermsOnStandUp); + childSetValue("disable_click_sit_check", mDisableClickSit); } void LLPrefsAscentSysImpl::cancel() @@ -454,6 +457,7 @@ void LLPrefsAscentSysImpl::apply() gSavedSettings.setBOOL("PrivateLookAt", childGetValue("private_look_at_check")); LLHUDEffectLookAt::sDebugLookAt = childGetValue("show_look_at_check"); gSavedSettings.setBOOL("RevokePermsOnStandUp", childGetValue("revoke_perms_on_stand_up_check")); + gSavedSettings.setBOOL("DisableClickSit", childGetValue("disable_click_sit_check")); refreshValues(); refresh(); diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp index d37362715..d0e0f1b7c 100644 --- a/indra/newview/lltoolpie.cpp +++ b/indra/newview/lltoolpie.cpp @@ -192,11 +192,9 @@ BOOL LLToolPie::pickAndShowMenu(BOOL always_show) // touch behavior down below... break; case CLICK_ACTION_SIT: - if ((gAgent.getAvatarObject() != NULL) && (!gAgent.getAvatarObject()->mIsSitting)) // agent not already sitting + if ((gAgent.getAvatarObject() != NULL) && (!gAgent.getAvatarObject()->mIsSitting) + && (!gSavedSettings.getBOOL("DisableClickSit"))) // agent not already sitting { - // - if(!gSavedSettings.getBOOL("DisableClickSit")) - // handle_sit_or_stand(); // put focus in world when sitting on an object gFocusMgr.setKeyboardFocus(NULL);