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.
This commit is contained in:
parent
7fddf383b1
commit
4dd1068a57
Notes:
blender-bot
2023-02-14 06:00:47 +01:00
Referenced by issue #86246, geometry node select and drag crash
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue