From 4dd1068a5789097b50eab159adc995906fa5ea84 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 2 Mar 2021 22:53:25 -0600 Subject: 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. --- source/blender/editors/space_node/node_relationships.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source') 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); -- cgit v1.2.3