Page MenuHome

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

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

Lukas, can you please check this?

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