From 6d8d21812b59db6084ca2fbb1835713141c5d530 Mon Sep 17 00:00:00 2001 From: Lalit Shankar Chowdhury Date: Thu, 19 Sep 2024 17:05:21 +0200 Subject: [PATCH] Fix #126983: custom nodes and groups icon missing Fix regression caused by commit b120440f7c. Pull Request: https://projects.blender.org/blender/blender/pulls/127263 --- source/blender/editors/space_node/node_draw.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,