diff options
author | Hans Goudey <h.goudey@me.com> | 2020-10-02 21:06:58 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-10-02 21:06:58 +0300 |
commit | 6f96dd85766a8159d5ffb761cbb4dbd20b7cad00 (patch) | |
tree | 4b30cab53596022e2b639f57511141dac5f682ab /source/blender/editors/interface | |
parent | a4aa94c41cb79e917a5bfe78907ab4a4bcbdad3b (diff) |
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
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index efa5613e210..f2d9f90f354 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -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) { |