Fix redo panels being added to non-hud regions

This commit is contained in:
Campbell Barton 2018-06-12 16:55:00 +02:00
parent 2a3e7fe656
commit 97cac69739
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ void ED_area_type_hud_ensure(bContext *C, ScrArea *sa)
ED_area_type_hud_clear(wm, sa);
ARegionType *art = BKE_regiontype_from_id(sa->type, RGN_TYPE_HUD);
if (art == NULL) {
if ((art == NULL) || (art->regionid != RGN_TYPE_HUD)) {
return;
}