Commit: f2f796e623237504790b421e54a4a82549e68c92
Author: Fabian Schempp
Date:   Tue Mar 23 08:14:29 2021 +0100
Branches: master
https://developer.blender.org/rBf2f796e623237504790b421e54a4a82549e68c92

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

===================================================================

M       source/blender/editors/space_node/node_relationships.c

===================================================================

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);
       }
     }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to