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-05 16:39:39 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-02-05 16:40:53 +0400
commit13780799ea143a8220aaacd24d1546dde48ac3b5 (patch)
treee46e3d47fb215726f18c307985a54af6110ee55e /source/blender/editors/interface/interface_panel.c
parent06b6cd83459713ef5c00f705f6cdf1481ed24179 (diff)
Fix T38478: pin panel, then ctrl+click to collapse others incorrectly unpinned panels.
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r--source/blender/editors/interface/interface_panel.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index f6557b98bdd..071a2b4bb65 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -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;
+ }
+ }
}
}