diff options
author | Hans Goudey <h.goudey@me.com> | 2020-08-27 22:22:28 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-08-27 22:22:28 +0300 |
commit | a8766de5d59be699f47f7daedf8ac35f46e9b2e2 (patch) | |
tree | 72860fc7894e4bb02cfa54ff98fe6434a41be91a | |
parent | 714dbf273ce6393a0d2b57c3549830cc7df17750 (diff) |
Fix T68317: Panel "A" key doesn't collapse subpanels properly
We need to only collapse or expand the first panel under the cursor
rather than all of them. Note that whether the parent panel or
the subpanel is first depends on the order of the uiBlocks in the
region's list.
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 062592e180b..fe8e2eabea1 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -2410,7 +2410,7 @@ int ui_handler_panel_region(bContext *C, if (event->type == EVT_AKEY && !IS_EVENT_MOD(event, shift, ctrl, alt, oskey)) { retval = WM_UI_HANDLER_BREAK; ui_handle_panel_header(C, block, mx, event->type, event->ctrl, event->shift); - continue; + break; } } |