Fix T77075: Crash omitting optional UILayout.template_ID_tabs parameter

This commit is contained in:
Julian Eisel 2020-05-26 12:56:53 +02:00
parent fc2bb44e94
commit 2a692e05c8
Notes: blender-bot 2023-02-14 06:25:25 +01:00
Referenced by issue #77075, Bugs with the "template_ID_tabs"
1 changed files with 1 additions and 1 deletions

View File

@ -1155,7 +1155,7 @@ static void template_ID_tabs(bContext *C,
{
const ARegion *region = CTX_wm_region(C);
const PointerRNA active_ptr = RNA_property_pointer_get(&template->ptr, template->prop);
MenuType *mt = WM_menutype_find(menu, false);
MenuType *mt = menu ? WM_menutype_find(menu, false) : NULL;
const int but_align = ui_but_align_opposite_to_area_align_get(region);
const int but_height = UI_UNIT_Y * 1.1;