@@ -10172,7 +10172,7 @@
|
|||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>Boolean</string>
|
<string>Boolean</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<integer>1</integer>
|
<integer>0</integer>
|
||||||
</map>
|
</map>
|
||||||
<key>PlayIMSound</key>
|
<key>PlayIMSound</key>
|
||||||
<map>
|
<map>
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ private:
|
|||||||
BOOL mPrivateLookAt;
|
BOOL mPrivateLookAt;
|
||||||
BOOL mShowLookAt;
|
BOOL mShowLookAt;
|
||||||
BOOL mRevokePermsOnStandUp;
|
BOOL mRevokePermsOnStandUp;
|
||||||
|
BOOL mDisableClickSit;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -189,6 +190,7 @@ void LLPrefsAscentSysImpl::refreshValues()
|
|||||||
mPrivateLookAt = gSavedSettings.getBOOL("PrivateLookAt");
|
mPrivateLookAt = gSavedSettings.getBOOL("PrivateLookAt");
|
||||||
mShowLookAt = LLHUDEffectLookAt::sDebugLookAt;
|
mShowLookAt = LLHUDEffectLookAt::sDebugLookAt;
|
||||||
mRevokePermsOnStandUp = gSavedSettings.getBOOL("RevokePermsOnStandUp");
|
mRevokePermsOnStandUp = gSavedSettings.getBOOL("RevokePermsOnStandUp");
|
||||||
|
mDisableClickSit = gSavedSettings.getBOOL("DisableClickSit");
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLPrefsAscentSysImpl::refresh()
|
void LLPrefsAscentSysImpl::refresh()
|
||||||
@@ -280,6 +282,7 @@ void LLPrefsAscentSysImpl::refresh()
|
|||||||
childSetValue("private_look_at_check", mPrivateLookAt);
|
childSetValue("private_look_at_check", mPrivateLookAt);
|
||||||
childSetValue("show_look_at_check", mShowLookAt);
|
childSetValue("show_look_at_check", mShowLookAt);
|
||||||
childSetValue("revoke_perms_on_stand_up_check", mRevokePermsOnStandUp);
|
childSetValue("revoke_perms_on_stand_up_check", mRevokePermsOnStandUp);
|
||||||
|
childSetValue("disable_click_sit_check", mDisableClickSit);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLPrefsAscentSysImpl::cancel()
|
void LLPrefsAscentSysImpl::cancel()
|
||||||
@@ -454,6 +457,7 @@ void LLPrefsAscentSysImpl::apply()
|
|||||||
gSavedSettings.setBOOL("PrivateLookAt", childGetValue("private_look_at_check"));
|
gSavedSettings.setBOOL("PrivateLookAt", childGetValue("private_look_at_check"));
|
||||||
LLHUDEffectLookAt::sDebugLookAt = childGetValue("show_look_at_check");
|
LLHUDEffectLookAt::sDebugLookAt = childGetValue("show_look_at_check");
|
||||||
gSavedSettings.setBOOL("RevokePermsOnStandUp", childGetValue("revoke_perms_on_stand_up_check"));
|
gSavedSettings.setBOOL("RevokePermsOnStandUp", childGetValue("revoke_perms_on_stand_up_check"));
|
||||||
|
gSavedSettings.setBOOL("DisableClickSit", childGetValue("disable_click_sit_check"));
|
||||||
|
|
||||||
refreshValues();
|
refreshValues();
|
||||||
refresh();
|
refresh();
|
||||||
|
|||||||
@@ -192,11 +192,9 @@ BOOL LLToolPie::pickAndShowMenu(BOOL always_show)
|
|||||||
// touch behavior down below...
|
// touch behavior down below...
|
||||||
break;
|
break;
|
||||||
case CLICK_ACTION_SIT:
|
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
|
||||||
{
|
{
|
||||||
// <edit>
|
|
||||||
if(!gSavedSettings.getBOOL("DisableClickSit"))
|
|
||||||
// </edit>
|
|
||||||
handle_sit_or_stand();
|
handle_sit_or_stand();
|
||||||
// put focus in world when sitting on an object
|
// put focus in world when sitting on an object
|
||||||
gFocusMgr.setKeyboardFocus(NULL);
|
gFocusMgr.setKeyboardFocus(NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user