[Bf-codereview] Patch: adding custom node socket shapes to the Node Editor (issue 12245043)

lukas.toenne at gmail.com lukas.toenne at gmail.com
Fri Aug 2 11:45:21 CEST 2013


https://codereview.appspot.com/12245043/diff/1/source/blender/makesrna/intern/rna_nodetree.c
File source/blender/makesrna/intern/rna_nodetree.c (right):

https://codereview.appspot.com/12245043/diff/1/source/blender/makesrna/intern/rna_nodetree.c#newcode2240
source/blender/makesrna/intern/rna_nodetree.c:2240: static void
rna_NodeSocketStandard_draw_shape(ID *id, bNodeSocket *sock, struct
bContext *C, PointerRNA *nodeptr, int *r_shape)
In this case it can just be a simple return value, no need to pass a r_
pointer. Was just needed for color returns, because float[4] cannot be a
simple return.

https://codereview.appspot.com/12245043/


More information about the Bf-codereview mailing list