Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/space_node/node_relationships.c')
-rw-r--r--source/blender/editors/space_node/node_relationships.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_relationships.c b/source/blender/editors/space_node/node_relationships.c
index 76e424f9eca..7286b6fbc0c 100644
--- a/source/blender/editors/space_node/node_relationships.c
+++ b/source/blender/editors/space_node/node_relationships.c
@@ -1600,7 +1600,7 @@ static void node_link_insert_offset_ntree(
node_offset_apply(offs_node, addval);
}
else if (!insert->parent && offs_node->parent) {
- node_offset_apply(offs_node->parent, addval);
+ node_offset_apply(nodeFindRootParent(offs_node), addval);
}
margin = addval;
}