Blender Git Loki

Git Commits -> Revision 77a0b90

Revision 77a0b90 by Lukas Toenne (master)
October 10, 2013, 11:33 (GMT)
Cleanup: Consistent names for draw callbacks in bNodeType.

This aims to establish a common pattern for the various confusing draw callback function pointers in bNodeType:

draw_<purpose>_<nodetype>[_ex]

Currently there are 4 different types of draw callbacks:
* draw_nodetype, draw_nodetype_prepare: Main draw functions, allows specialized node drawing for things like frames and reroute nodes. Not exposed in the API.
* draw_buttons, draw_buttons_ex: Optional non-socket buttons, most commonly used callback. Extended version used in sidebar for verbose buttons that don't fit into a node.
* draw_backdrop: Draw elements in the backdrop (compositor only). Not exposed in the API.
* draw_input, draw_output: Specialized socket drawing for some nodes, only for OutputFile node. Should not be used any further and be removed at some point. Not exposed in the API.

Commit Details:

Full Hash: 77a0b90cdf5d42b774f75b392aa0e3aeb7ed3452
SVN Revision: 60657
Parent Commit: bbd9b5f
Lines Changed: +201, -199

6 Modified Paths:

/source/blender/blenkernel/BKE_node.h (+16, -14) (Diff)
/source/blender/editors/space_node/drawnode.c (+163, -163) (Diff)
/source/blender/editors/space_node/node_draw.c (+8, -8) (Diff)
/source/blender/editors/space_node/node_edit.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_templates.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+8, -8) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021