Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_edit.cc
| Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| float2 node_link_calculate_multi_input_position(const float2 &socket_position, | float2 node_link_calculate_multi_input_position(const float2 &socket_position, | ||||
| const int index, | const int index, | ||||
| const int total_inputs) | const int total_inputs) | ||||
| { | { | ||||
| const float offset = (total_inputs * NODE_MULTI_INPUT_LINK_GAP - NODE_MULTI_INPUT_LINK_GAP) * | const float offset = (total_inputs * NODE_MULTI_INPUT_LINK_GAP - NODE_MULTI_INPUT_LINK_GAP) * | ||||
| 0.5f; | 0.5f; | ||||
| return {socket_position.x - NODE_SOCKSIZE * 0.5f, | return {socket_position.x, socket_position.y - offset + index * NODE_MULTI_INPUT_LINK_GAP}; | ||||
| socket_position.y - offset + index * NODE_MULTI_INPUT_LINK_GAP}; | |||||
| } | } | ||||
| static void compo_tag_output_nodes(bNodeTree *nodetree, int recalc_flags) | static void compo_tag_output_nodes(bNodeTree *nodetree, int recalc_flags) | ||||
| { | { | ||||
| LISTBASE_FOREACH (bNode *, node, &nodetree->nodes) { | LISTBASE_FOREACH (bNode *, node, &nodetree->nodes) { | ||||
| if (node->type == CMP_NODE_COMPOSITE) { | if (node->type == CMP_NODE_COMPOSITE) { | ||||
| if (recalc_flags & COM_RECALC_COMPOSITE) { | if (recalc_flags & COM_RECALC_COMPOSITE) { | ||||
| node->flag |= NODE_DO_OUTPUT_RECALC; | node->flag |= NODE_DO_OUTPUT_RECALC; | ||||
| ▲ Show 20 Lines • Show All 2,980 Lines • Show Last 20 Lines | |||||