Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 632 Lines • ▼ Show 20 Lines | uiDefBut(node->block, UI_BTYPE_LABEL, 0, showname, | ||||
| (short)512, (short)NODE_DY, | (short)512, (short)NODE_DY, | ||||
| NULL, 0, 0, 0, 0, NULL); | NULL, 0, 0, 0, 0, NULL); | ||||
| } | } | ||||
| /* only draw input socket. as they all are placed on the same position. | /* only draw input socket. as they all are placed on the same position. | ||||
| * highlight also if node itself is selected, since we don't display the node body separately! | * highlight also if node itself is selected, since we don't display the node body separately! | ||||
| */ | */ | ||||
| for (sock = node->inputs.first; sock; sock = sock->next) { | for (sock = node->inputs.first; sock; sock = sock->next) { | ||||
| node_socket_circle_draw(C, ntree, node, sock, socket_size, (sock->flag & SELECT) || (node->flag & SELECT)); | node_socket_draw(C, ntree, node, sock, socket_size, (sock->flag & SELECT) || (node->flag & SELECT)); | ||||
| } | } | ||||
| UI_block_end(C, node->block); | UI_block_end(C, node->block); | ||||
| UI_block_draw(C, node->block); | UI_block_draw(C, node->block); | ||||
| node->block = NULL; | node->block = NULL; | ||||
| } | } | ||||
| /* Special tweak area for reroute node. | /* Special tweak area for reroute node. | ||||
| ▲ Show 20 Lines • Show All 3,015 Lines • Show Last 20 Lines | |||||