Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_buttons.c
| Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | if (ELEM(NULL, ntree, node)) { | ||||
| return; | return; | ||||
| } | } | ||||
| for (sock = node->inputs.first; sock; sock = sock->next) { | for (sock = node->inputs.first; sock; sock = sock->next) { | ||||
| BLI_snprintf(name, sizeof(name), "%s:", sock->name); | BLI_snprintf(name, sizeof(name), "%s:", sock->name); | ||||
| split = uiLayoutSplit(layout, 0.35f, false); | split = uiLayoutSplit(layout, 0.35f, false); | ||||
| uiItemL(split, name, ICON_NONE); | uiItemL(split, name, ICON_NONE); | ||||
| uiTemplateNodeLink(split, ntree, node, sock); | uiTemplateNodeLink(split, (bContext *)C, ntree, node, sock); | ||||
| } | } | ||||
| } | } | ||||
| static bool node_tree_interface_poll(const bContext *C, PanelType *UNUSED(pt)) | static bool node_tree_interface_poll(const bContext *C, PanelType *UNUSED(pt)) | ||||
| { | { | ||||
| SpaceNode *snode = CTX_wm_space_node(C); | SpaceNode *snode = CTX_wm_space_node(C); | ||||
| return (snode && snode->edittree && | return (snode && snode->edittree && | ||||
| ▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines | |||||