Fix T102620: Display dynamic socket label in uiTemplateNodeView
Some nodes, like Combine Color or the math nodes, label sockets differently depending on the mode to be more descriptive. `uiTemplateNodeView` now also uses this dynamic label rather than the socket's name for labeling in the UI so the shown labels always match the ones on the node itself. Reviewed By: Hans Goudey Differential Revision: http://developer.blender.org/D16563
This commit is contained in:
parent
3648fd9917
commit
b75946bcb6
Notes:
blender-bot
2023-02-13 13:59:42 +01:00
Referenced by issue #102620, Combine color node: Wrong labels in material properties tab when mode is other than RGB
|
@ -830,7 +830,7 @@ static void ui_node_draw_input(
|
|||
|
||||
sub = uiLayoutRow(sub, true);
|
||||
uiLayoutSetAlignment(sub, UI_LAYOUT_ALIGN_RIGHT);
|
||||
uiItemL(sub, IFACE_(input.name), ICON_NONE);
|
||||
uiItemL(sub, IFACE_(nodeSocketLabel(&input)), ICON_NONE);
|
||||
}
|
||||
|
||||
if (dependency_loop) {
|
||||
|
|
Loading…
Reference in New Issue