[Bf-blender-cvs] [4dd1068a578] master: Fix crash when dragging nodes

Hans Goudey noreply at git.blender.org
Wed Mar 3 05:53:32 CET 2021


Commit: 4dd1068a5789097b50eab159adc995906fa5ea84
Author: Hans Goudey
Date:   Tue Mar 2 22:53:25 2021 -0600
Branches: master
https://developer.blender.org/rB4dd1068a5789097b50eab159adc995906fa5ea84

Fix crash when dragging nodes

The `bNodeLinkDrag` struct was NULL when dragging a node instead of
a link. It is allocated with `calloc` anyway, so this field doesn't
need to be explitely cleared.

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

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 218102d2261..35dd865047e 100644
--- a/source/blender/editors/space_node/node_relationships.c
+++ b/source/blender/editors/space_node/node_relationships.c
@@ -1034,8 +1034,6 @@ static int node_link_invoke(bContext *C, wmOperator *op, const wmEvent *event)
 
   bNodeLinkDrag *nldrag = node_link_init(bmain, snode, cursor, detach);
 
-  nldrag->last_picked_multi_input_socket_link = NULL;
-
   if (nldrag) {
     op->customdata = nldrag;
     BLI_addtail(&snode->runtime->linkdrag, nldrag);



More information about the Bf-blender-cvs mailing list