Fix T38478: pin panel, then ctrl+click to collapse others incorrectly unpinned panels.

This commit is contained in:
Brecht Van Lommel 2014-02-05 13:39:39 +01:00
parent 06b6cd8345
commit 13780799ea
Notes: blender-bot 2023-02-14 11:14:36 +01:00
Referenced by issue #38478, New TABs on T panel, PINS
1 changed files with 6 additions and 3 deletions

View File

@ -180,9 +180,12 @@ static void panels_collapse_all(ScrArea *sa, ARegion *ar, Panel *from_pa)
from_pt = from_pa->type;
/* close panels with headers in the same context */
if (pt && from_pt && !(pt->flag & PNL_NO_HEADER))
if (!pt->context[0] || strcmp(pt->context, from_pt->context) == 0)
pa->flag = flag;
if (pt && from_pt && !(pt->flag & PNL_NO_HEADER)) {
if (!pt->context[0] || strcmp(pt->context, from_pt->context) == 0) {
pa->flag &= ~PNL_CLOSED;
pa->flag |= flag;
}
}
}
}