Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2014-02-24 22:52:34 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-02-24 22:53:15 +0400
commit0f96d0552dc4cc295d315228a27b0daa593f4a8d (patch)
treeb6f1b5360e9eb88146329df64597043bfb3ff601 /source/blender/editors
parent97c66c9bf14090a0c45252bd68dcef9bf28661a5 (diff)
Fix T38810: ctrl + click panel collapse not taking tabs into account.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/interface/interface_panel.c6
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;
+ }
}
}
}