Fix T78503: Disabled layout portion passes mouse through

3D Viewport -> Sidebar -> View -> Local Camera is disabled. When you
click on it, box select starts. This behavior isn't intended, and fixing
it is quite simple. The only case where this would continuing would
still be desired is if a disabled button overlapped with a non-disabled
button, but this shouldn't be the case anywhere.

Differential Revision: https://developer.blender.org/D8832
This commit is contained in:
Hans Goudey 2020-10-02 13:06:58 -05:00
parent a4aa94c41c
commit 6f96dd8576
Notes: blender-bot 2023-02-14 04:39:18 +01:00
Referenced by commit fb87578698, Fix T96255: Node socket fails to drag
Referenced by issue #78503, Disabled layout portion passes mouse through.
1 changed files with 1 additions and 1 deletions

View File

@ -7580,7 +7580,7 @@ static int ui_do_button(bContext *C, uiBlock *block, uiBut *but, const wmEvent *
}
if (but->flag & UI_BUT_DISABLED) {
return WM_UI_HANDLER_CONTINUE;
return WM_UI_HANDLER_BREAK;
}
switch (but->type) {