diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc index c35f8906194..2bdc816bca1 100644 --- a/source/blender/editors/space_node/node_draw.cc +++ b/source/blender/editors/space_node/node_draw.cc @@ -3435,7 +3435,7 @@ static void node_draw_basis(const bContext &C, float iconofs = rct.xmax - 0.35f * U.widget_unit; /* Group edit. This icon should be the first for the node groups. */ - if (node.type == NODE_GROUP) { + if (node.is_group()) { iconofs -= iconbutw; UI_block_emboss_set(&block, UI_EMBOSS_NONE); uiBut *but = uiDefIconBut(&block, @@ -3482,7 +3482,7 @@ static void node_draw_basis(const bContext &C, (void *)"NODE_OT_preview_toggle"); UI_block_emboss_set(&block, UI_EMBOSS); } - if (node.is_group() && node.typeinfo->ui_icon != ICON_NONE) { + if (ELEM(node.type, NODE_CUSTOM, NODE_CUSTOM_GROUP) && node.typeinfo->ui_icon != ICON_NONE) { iconofs -= iconbutw; UI_block_emboss_set(&block, UI_EMBOSS_NONE); uiDefIconBut(&block,