diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-12 17:55:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-12 17:55:00 +0300 |
commit | 97cac69739528334d1c92d4bc80ef32ddb245681 (patch) | |
tree | e6a51bed2ba8a06f5271797ef4fc1296b9fe7c9f | |
parent | 2a3e7fe656e7a9d84b308439598cf9de53d78fff (diff) |
Fix redo panels being added to non-hud regions
-rw-r--r-- | source/blender/editors/interface/interface_region_hud.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_region_hud.c b/source/blender/editors/interface/interface_region_hud.c index 5a3d2250f20..ccec9af47e7 100644 --- a/source/blender/editors/interface/interface_region_hud.c +++ b/source/blender/editors/interface/interface_region_hud.c @@ -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; } |