diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-24 22:52:34 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-24 22:53:15 +0400 |
commit | 0f96d0552dc4cc295d315228a27b0daa593f4a8d (patch) | |
tree | b6f1b5360e9eb88146329df64597043bfb3ff601 /source/blender | |
parent | 97c66c9bf14090a0c45252bd68dcef9bf28661a5 (diff) |
Fix T38810: ctrl + click panel collapse not taking tabs into account.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index fada118e037..cb1f59cfd68 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -183,8 +183,10 @@ static void panels_collapse_all(ScrArea *sa, ARegion *ar, Panel *from_pa) /* 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 &= ~PNL_CLOSED; - pa->flag |= flag; + if (!pt->category[0] || strcmp(pt->category, from_pt->category) == 0) { + pa->flag &= ~PNL_CLOSED; + pa->flag |= flag; + } } } } |