Fix: Nodes: show group icon for custom node groups

The bl_icon of NodeCustomGroups is being ignored in latest versions.
This commit re-enables the icon drawing for those nodes.

Pull Request: https://projects.blender.org/blender/blender/pulls/123669
This commit is contained in:
Miguel Porces
2024-06-26 14:03:02 +02:00
committed by Jacques Lucke
parent 29f6167db1
commit b120440f7c

View File

@@ -3433,7 +3433,7 @@ static void node_draw_basis(const bContext &C,
(void *)"NODE_OT_preview_toggle");
UI_block_emboss_set(&block, UI_EMBOSS);
}
if (node.type == NODE_CUSTOM && node.typeinfo->ui_icon != ICON_NONE) {
if (node.is_group() && node.typeinfo->ui_icon != ICON_NONE) {
iconofs -= iconbutw;
UI_block_emboss_set(&block, UI_EMBOSS_NONE);
uiDefIconBut(&block,