diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-17 14:16:41 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-17 14:17:04 +0300 |
commit | 209ca1e746b246a2bccd240eb9126a927bcd81f1 (patch) | |
tree | 0083f514adffb5286b9591268f17bffb9f0e9386 /source/blender/blenkernel/intern | |
parent | 7fcaa7feac2775297798c78b0065198632442d12 (diff) |
Fix T46139: Crash when inserting a node in a looped node structure
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/node.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c index 3bcdb93729f..044ca4eba38 100644 --- a/source/blender/blenkernel/intern/node.c +++ b/source/blender/blenkernel/intern/node.c @@ -818,6 +818,10 @@ void nodeChainIter( bNodeLink *link; for (link = ntree->links.first; link; link = link->next) { + if (link->flag & NODE_LINK_VALID) { + /* Skip links marked as cyclic. */ + continue; + } if (link->tonode && link->fromnode) { /* is the link part of the chain meaning node_start == fromnode (or tonode for reversed case)? */ if ((reversed && (link->tonode == node_start)) || |