Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-08-27 22:22:28 +0300
committerHans Goudey <h.goudey@me.com>2020-08-27 22:22:28 +0300
commita8766de5d59be699f47f7daedf8ac35f46e9b2e2 (patch)
tree72860fc7894e4bb02cfa54ff98fe6434a41be91a /source/blender
parent714dbf273ce6393a0d2b57c3549830cc7df17750 (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.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/interface/interface_panel.c2
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;
}
}