Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_group.c
| Show First 20 Lines • Show All 708 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| bNode *node; | bNode *node; | ||||
| float loc[2]; | float loc[2]; | ||||
| int totselect = 0; | int totselect = 0; | ||||
| INIT_MINMAX2(min, max); | INIT_MINMAX2(min, max); | ||||
| for (node = ntree->nodes.first; node; node = node->next) { | for (node = ntree->nodes.first; node; node = node->next) { | ||||
| if (node_group_make_use_node(node, gnode)) { | if (node_group_make_use_node(node, gnode)) { | ||||
| nodeToView(node, 0.0f, 0.0f, &loc[0], &loc[1]); | nodeToView(node, node->offsetx, node->offsety, &loc[0], &loc[1]); | ||||
| minmax_v2v2_v2(min, max, loc); | minmax_v2v2_v2(min, max, loc); | ||||
| if (use_size) { | if (use_size) { | ||||
| loc[0] += node->width; | loc[0] += node->width; | ||||
| loc[1] -= node->height; | loc[1] -= node->height; | ||||
| minmax_v2v2_v2(min, max, loc); | minmax_v2v2_v2(min, max, loc); | ||||
| } | } | ||||
| totselect++; | totselect++; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 393 Lines • Show Last 20 Lines | |||||