Commit: a76cfe2c22ed5142a481d89bf85e4b620604ae50
Author: Campbell Barton
Date:   Tue Jun 12 17:38:04 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBa76cfe2c22ed5142a481d89bf85e4b620604ae50

Cleanup: no need for extra HUD type check now

===================================================================

M       source/blender/editors/interface/interface_region_hud.c

===================================================================

diff --git a/source/blender/editors/interface/interface_region_hud.c 
b/source/blender/editors/interface/interface_region_hud.c
index ccec9af47e7..5a3d2250f20 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) || (art->regionid != RGN_TYPE_HUD)) {
+       if (art == NULL) {
                return;
        }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to