[Bf-blender-cvs] [1378079] master: Fix T38478: pin panel, then ctrl+click to collapse others incorrectly unpinned panels.
Brecht Van Lommel
noreply at git.blender.org
Wed Feb 5 13:41:03 CET 2014
Commit: 13780799ea143a8220aaacd24d1546dde48ac3b5
Author: Brecht Van Lommel
Date: Wed Feb 5 13:39:39 2014 +0100
https://developer.blender.org/rB13780799ea143a8220aaacd24d1546dde48ac3b5
Fix T38478: pin panel, then ctrl+click to collapse others incorrectly unpinned panels.
===================================================================
M source/blender/editors/interface/interface_panel.c
===================================================================
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index f6557b9..071a2b4 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;
+ }
+ }
}
}
More information about the Bf-blender-cvs
mailing list