Blender Git Loki

Git Commits -> Revision 8abfaf8

Revision 8abfaf8 by Lukas Toenne (master)
April 2, 2013, 11:59 (GMT)
Fix for #34756 and #34810, crashes when dropping nodes onto noodles and a related forward compatibility bug.

Added a sanity check to the ED_node_link_insert function to ensure it exits gracefully if no suitable sockets can be found. This was the problem with custom pynodes, which don't define the 'type' DNA of old sockets. The operator will have to be generalized for future nodes, but for now just not crashing seems good enough.

Script node crashes in #34810 were caused by uninitialized 'type' integer as well. This is now done in the set_typeinfo function for sockets (like for trees and nodes too), to avoid any potential remaining issues of this kind. Note that new files need to be loaded and saved again once to be forward compatible again.

Commit Details:

Full Hash: 8abfaf880de1748988f0a10c56f726cc6761e612
SVN Revision: 55717
Parent Commit: 37bf7dd
Lines Changed: +22, -13

2 Modified Paths:

/source/blender/blenkernel/intern/node.c (+4, -1) (Diff)
/source/blender/editors/space_node/node_relationships.c (+18, -12) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021