forked from bartvdbraak/blender
Bugfix: Histogram button was added missing 'break' in switch() for
button handling, causing a lot of buttons to be handled as histogram button... :)
This commit is contained in:
parent
68abfd076b
commit
07e36f50a3
@ -2088,6 +2088,8 @@ static int ui_do_but_EXIT(bContext *C, uiBut *but, uiHandleButtonData *data, wmE
|
||||
return WM_UI_HANDLER_CONTINUE;
|
||||
}
|
||||
|
||||
/* while wait drag, always block other events to get handled */
|
||||
return WM_UI_HANDLER_BREAK;
|
||||
}
|
||||
|
||||
return WM_UI_HANDLER_CONTINUE;
|
||||
@ -4078,6 +4080,7 @@ static int ui_do_button(bContext *C, uiBlock *block, uiBut *but, wmEvent *event)
|
||||
case LISTROW:
|
||||
case BUT_IMAGE:
|
||||
retval= ui_do_but_EXIT(C, but, data, event);
|
||||
break;
|
||||
case HISTOGRAM:
|
||||
retval= ui_do_but_HISTOGRAM(C, block, but, data, event);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user