Fix #19513: scroll wheel did not work when over disabled buttons.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 1 Oct 2009 12:33:35 +0000 (12:33 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 1 Oct 2009 12:33:35 +0000 (12:33 +0000)
source/blender/editors/interface/interface_handlers.c

index b5de855cb80d968b7ebb7c600dfcf50be4bd4827..c60c94a9c4d0caa51013770a37f83bb1d4cb1332 100644 (file)
@@ -3271,7 +3271,7 @@ static int ui_do_button(bContext *C, uiBlock *block, uiBut *but, wmEvent *event)
        retval= WM_UI_HANDLER_CONTINUE;
 
        if(but->flag & UI_BUT_DISABLED)
-               return WM_UI_HANDLER_BREAK;
+               return WM_UI_HANDLER_CONTINUE;
 
        if(data->state == BUTTON_STATE_HIGHLIGHT) {
                /* handle copy-paste */