[Bf-blender-cvs] [08bbea9] master: UI: multi-value-edit, distable alt+lmb on sliders
Campbell Barton
noreply at git.blender.org
Wed May 13 02:33:17 CEST 2015
Commit: 08bbea9362c35073dadf82993e17a152fea6f640
Author: Campbell Barton
Date: Wed May 13 10:32:30 2015 +1000
Branches: master
https://developer.blender.org/rB08bbea9362c35073dadf82993e17a152fea6f640
UI: multi-value-edit, distable alt+lmb on sliders
===================================================================
M source/blender/editors/interface/interface_handlers.c
===================================================================
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 036e2ba..d77cf86 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -4373,6 +4373,7 @@ static int ui_do_but_SLI(bContext *C, uiBlock *block, uiBut *but, uiHandleButton
button_activate_state(C, but, BUTTON_STATE_TEXT_EDITING);
retval = WM_UI_HANDLER_BREAK;
}
+#ifndef USE_ALLSELECT
/* alt-click on sides to get "arrows" like in UI_BTYPE_NUM buttons, and match wheel usage above */
else if (event->type == LEFTMOUSE && event->alt) {
int halfpos = BLI_rctf_cent_x(&but->rect);
@@ -4382,6 +4383,7 @@ static int ui_do_but_SLI(bContext *C, uiBlock *block, uiBut *but, uiHandleButton
else
mx = but->rect.xmax;
}
+#endif
else if (event->type == LEFTMOUSE) {
data->dragstartx = mx;
data->draglastx = mx;
More information about the Bf-blender-cvs
mailing list