diff options
author | Fabian Schempp <fabianschempp@googlemail.com> | 2021-03-23 10:14:29 +0300 |
---|---|---|
committer | Fabian Schempp <fabianschempp@googlemail.com> | 2021-03-23 10:14:29 +0300 |
commit | f2f796e623237504790b421e54a4a82549e68c92 (patch) | |
tree | fc72eb39afeedad986618129e4c6a0ce4accc89d /source | |
parent | 2600b27d2647acfc9ddc19084b10db673b46a95a (diff) |
FIX: Incorrect link drawing after link cutting tool
Sorting of links on multi-input sockets where not recalculated after
using the knife operator. Added call to resort function before
cutting operator finishes.
Reviewer: Jacques Lucke
Differential Revision: https://developer.blender.org/D10783
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_node/node_relationships.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_relationships.c b/source/blender/editors/space_node/node_relationships.c index 2cc44d72c72..4b2290c094b 100644 --- a/source/blender/editors/space_node/node_relationships.c +++ b/source/blender/editors/space_node/node_relationships.c @@ -1289,7 +1289,9 @@ static int cut_links_exec(bContext *C, wmOperator *op) node_connected_to_output(bmain, snode->edittree, link->tonode)); snode_update(snode, link->tonode); + bNode *to_node = link->tonode; nodeRemLink(snode->edittree, link); + sort_multi_input_socket_links(snode, to_node, NULL, NULL); } } |