Maniphest T31363

NodeGroup.links.new() crashes when the order of NodeSockets is reversed
Closed, Resolved

Assigned To
Lukas Tönne (lukastoenne)
Authored By
Philipp Oeser (lichtwerk)
May 8 2012, 2:05 AM
Tags
  • Nodes
  • BF Blender
Subscribers
Lukas Tönne (lukastoenne)
Philipp Oeser (lichtwerk)
Sergey Sharybin (sergey)

Description

NodeGroup.links.new() crashes when the order of NodeSockets is reversed

I've attached a simple python script that demonstrates this (will crash blender when run on the default scene).

It seems as nodeFindNode() cant find the node in this case.
I'll also submit simple patch that prevents the crash.

tested in r46381.

Event Timeline

Philipp Oeser (lichtwerk) edited a custom field.May 8 2012, 2:05 AM
Philipp Oeser (lichtwerk) attached 1 file(s): F19018: NodeGroup_links_new_crash.py.
Philipp Oeser (lichtwerk) added a comment.May 8 2012, 2:08 AM

patch is #31364

Sergey Sharybin (sergey) added a comment.May 8 2012, 9:34 AM

Lukas, can you please check this?

Lukas Tönne (lukastoenne) added a comment.May 8 2012, 5:00 PM

Fixed in SVN. Swapped input/output sockets are actually supported (the blenkernel function sorts this out), but when linking to group interface sockets the node pointer is null.

Lukas Tönne (lukastoenne) changed the task status from Unknown Status to Resolved.May 8 2012, 5:00 PM
Philipp Oeser (lichtwerk) added a comment.May 8 2012, 5:16 PM

Thanx, Lukas!