diff options
author | Hans Goudey <h.goudey@me.com> | 2020-08-21 06:41:10 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-08-21 06:41:10 +0300 |
commit | 6755464527bbafb4c4bd8b6af906b52e489ea449 (patch) | |
tree | d28af7d1233479b19a1dbc4caa283fb5bc4e7131 /source/blender/editors | |
parent | 4ed8bd88d99da51e42577869a4618ee0b3374608 (diff) |
UI: Fix panel collapse all behavior inverted
Ctrl click on a panel should collapse all other panels but leave that panel
expanded. In a recent cleanup commit that was mistakenly reversed.
Diffstat (limited to 'source/blender/editors')
-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 57a170d602c..da7b1da9270 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -606,7 +606,7 @@ static void panels_collapse_all(const bContext *C, ARegion *region, const Panel if (!pt->context[0] || !from_pt->context[0] || STREQ(pt->context, from_pt->context)) { if ((panel->flag & PNL_PIN) || !category || !pt->category[0] || STREQ(pt->category, category)) { - panel->flag &= ~PNL_CLOSED; + panel->flag |= PNL_CLOSED; } } } |