forked from bartvdbraak/blender
Partial fix for T43740
ED_area_data_swap would put the screen in an invalid state and crash. (SpaceLink.spacetype didn't match ScrArea.type) However behavior is still odd in the instance of the report.
This commit is contained in:
parent
96c452bdf6
commit
86cfbeec6a
@ -1522,10 +1522,10 @@ void ED_area_data_copy(ScrArea *sa_dst, ScrArea *sa_src, const bool do_free)
|
||||
|
||||
void ED_area_data_swap(ScrArea *sa_dst, ScrArea *sa_src)
|
||||
{
|
||||
sa_dst->headertype = sa_src->headertype;
|
||||
sa_dst->spacetype = sa_src->spacetype;
|
||||
sa_dst->type = sa_src->type;
|
||||
sa_dst->butspacetype = sa_src->butspacetype;
|
||||
SWAP(short, sa_dst->headertype, sa_src->headertype);
|
||||
SWAP(char, sa_dst->spacetype, sa_src->spacetype);
|
||||
SWAP(SpaceType *, sa_dst->type, sa_src->type);
|
||||
SWAP(char, sa_dst->butspacetype, sa_src->butspacetype);
|
||||
|
||||
|
||||
SWAP(ListBase, sa_dst->spacedata, sa_src->spacedata);
|
||||
|
Loading…
Reference in New Issue
Block a user