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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user