ui_lists shall be NULLed in BKE_area_region_copy
Otherwise it'll be nasty crashes when, say, adding and removing screens with lists visible on the screen. Thanks Ton for assisting looking into this issue :)
This commit is contained in:
@@ -167,6 +167,7 @@ ARegion *BKE_area_region_copy(SpaceType *st, ARegion *ar)
|
||||
newar->prev = newar->next = NULL;
|
||||
newar->handlers.first = newar->handlers.last = NULL;
|
||||
newar->uiblocks.first = newar->uiblocks.last = NULL;
|
||||
newar->ui_lists.first = newar->ui_lists.last = NULL;
|
||||
newar->swinid = 0;
|
||||
|
||||
/* use optional regiondata callback */
|
||||
|
Reference in New Issue
Block a user