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.
This commit is contained in:
Hans Goudey 2020-08-20 23:41:10 -04:00
parent 4ed8bd88d9
commit 6755464527
1 changed files with 1 additions and 1 deletions

View File

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