diff options
author | Hans Goudey <h.goudey@me.com> | 2021-03-03 07:53:25 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-03-03 07:53:25 +0300 |
commit | 4dd1068a5789097b50eab159adc995906fa5ea84 (patch) | |
tree | ea2ae15f40c3aacc71234f21ceab67900ce4ed26 /source | |
parent | 7fddf383b13de783c7c8d786512d51023b346093 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_node/node_relationships.c | 2 |
1 files changed, 0 insertions, 2 deletions
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); |