Commit: a8766de5d59be699f47f7daedf8ac35f46e9b2e2
Author: Hans Goudey
Date:   Thu Aug 27 14:22:28 2020 -0500
Branches: master
https://developer.blender.org/rBa8766de5d59be699f47f7daedf8ac35f46e9b2e2

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.

===================================================================

M       source/blender/editors/interface/interface_panel.c

===================================================================

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;
       }
     }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to