Fix T81684: node location not handled correctly

Reviewers: ISS

Differential Revision: https://developer.blender.org/D9236
This commit is contained in:
Jacques Lucke 2020-10-20 10:51:19 +02:00
parent efc2edc47f
commit f3ecb4c91e
Notes: blender-bot 2023-02-14 05:50:03 +01:00
Referenced by issue #81684, Node location not handled correctly
1 changed files with 1 additions and 1 deletions

View File

@ -699,7 +699,7 @@ static int node_get_selected_minmax(
LISTBASE_FOREACH (bNode *, node, &ntree->nodes) {
if (node_group_make_use_node(node, gnode)) {
float loc[2];
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);
if (use_size) {
loc[0] += node->width;