diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-05-16 18:28:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-05-16 18:29:27 +0400 |
commit | 04665e20067cd7e5ffae8f48de50eb861b8e32d4 (patch) | |
tree | 1c30c9cb05a787ff2aa1150ecc7855b8708a6360 /source/blender/editors/screen | |
parent | 758bdcd6c234d119c25231f0ab08763109223d78 (diff) |
Fix T40226: Keep collapse-menu when splitting areas
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/area.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 151764dab6a..276fc9aca28 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); |