[Bf-blender-cvs] [0f96d05] master: Fix T38810: ctrl + click panel collapse not taking tabs into account.

Brecht Van Lommel noreply at git.blender.org
Mon Feb 24 19:54:20 CET 2014


Commit: 0f96d0552dc4cc295d315228a27b0daa593f4a8d
Author: Brecht Van Lommel
Date:   Mon Feb 24 19:52:34 2014 +0100
https://developer.blender.org/rB0f96d0552dc4cc295d315228a27b0daa593f4a8d

Fix T38810: ctrl + click panel collapse not taking tabs into account.

===================================================================

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 fada118..cb1f59c 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;
+				}
 			}
 		}
 	}




More information about the Bf-blender-cvs mailing list