Blender Git Loki

Git Commits -> Revision 3a69398

Revision 3a69398 by Lukas Toenne (master)
July 31, 2013, 12:26 (GMT)
Fix #36267, part 1 of 2: fix for reroute node type updates. The reroute nodes change their socket type based on what they are connected to, to work as pass-through nodes with as little conversion as
necessary.

Problem was/is that the nodes can set the 'type' property, but in order to actually change the data type they would also need to update the typeinfo pointer (and idname), which is strongly discouraged.
Solution is to just replace the input/output sockets of the reroute node with new sockets of the desired type and port all links over.

Commit Details:

Full Hash: 3a69398288a557102be16a44d9ca8de285bafb3b
SVN Revision: 58763
Parent Commit: 43ab02d
Lines Changed: +27, -10

1 Modified Path:

/source/blender/nodes/intern/node_common.c (+27, -10) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021