Fix T40226: Keep collapse-menu when splitting areas

This commit is contained in:
Campbell Barton 2014-05-17 00:28:00 +10:00
parent 758bdcd6c2
commit 04665e2006
Notes: blender-bot 2023-02-14 11:21:43 +01:00
Referenced by issue #40226, Collapse Menu when splitting region
1 changed files with 3 additions and 0 deletions

View File

@ -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);