[Bf-blender-cvs] [04665e2] master: Fix T40226: Keep collapse-menu when splitting areas

Campbell Barton noreply at git.blender.org
Fri May 16 16:29:38 CEST 2014


Commit: 04665e20067cd7e5ffae8f48de50eb861b8e32d4
Author: Campbell Barton
Date:   Sat May 17 00:28:00 2014 +1000
https://developer.blender.org/rB04665e20067cd7e5ffae8f48de50eb861b8e32d4

Fix T40226: Keep collapse-menu when splitting areas

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

M	source/blender/editors/screen/area.c

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

diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 151764d..276fc9a 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -1379,12 +1379,15 @@ void ED_area_data_copy(ScrArea *sa_dst, ScrArea *sa_src, const bool do_free)
 	SpaceType *st;
 	ARegion *ar;
 	const char spacetype = sa_dst->spacetype;
+	const short flag_copy = HEADER_NO_PULLDOWN;
 	
 	sa_dst->headertype = sa_src->headertype;
 	sa_dst->spacetype = sa_src->spacetype;
 	sa_dst->type = sa_src->type;
 	sa_dst->butspacetype = sa_src->butspacetype;
 
+	sa_dst->flag = (sa_dst->flag & ~flag_copy) | (sa_src->flag & flag_copy);
+
 	/* area */
 	if (do_free) {
 		BKE_spacedata_freelist(&sa_dst->spacedata);




More information about the Bf-blender-cvs mailing list