Blender Git Loki

Git Commits -> Revision 672d393

Revision 672d393 by Lukas Toenne (master)
May 8, 2013, 14:58 (GMT)
Change to socket draw functions: instead of always only drawing the socket label for connected sockets, leave this check up to the socket draw function itself. This allows future socket types to draw buttons or other info in all cases and handle connected/unconnected state more flexibly.

The drawinputfunc/drawoutputfunc callbacks in bNodeType are pretty much empty wrappers now and should be removed at some point. This per-node differentiation should rather be implemented as a specialized socket type if necessary. The only use case for this feature that remains is the file output node in compositor, which displays shortened file format info for each socket.

Commit Details:

Full Hash: 672d393517253707746d57a65ac9fa9734771be6
SVN Revision: 56584
Parent Commit: 0ee45c9
Lines Changed: +12, -10

3 Modified Paths:

/source/blender/blenkernel/BKE_node.h (+1, -1) (Diff)
/source/blender/editors/space_node/drawnode.c (+9, -7) (Diff)
/source/blender/editors/space_node/node_draw.c (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021