Fix #126983: custom nodes and groups icon missing
Fix regression caused by commit b120440f7c.
Pull Request: https://projects.blender.org/blender/blender/pulls/127263
This commit is contained in:
committed by
Jacques Lucke
parent
9453ff6995
commit
6d8d21812b
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user