Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-03-03 07:53:25 +0300
committerHans Goudey <h.goudey@me.com>2021-03-03 07:53:25 +0300
commit4dd1068a5789097b50eab159adc995906fa5ea84 (patch)
treeea2ae15f40c3aacc71234f21ceab67900ce4ed26
parent7fddf383b13de783c7c8d786512d51023b346093 (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.
-rw-r--r--source/blender/editors/space_node/node_relationships.c2
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);