moved node_shader_lamp_loop to node.c and put an extern declaration in BKE_node.h to prevent multiple definition link errors.
This commit is contained in:
@@ -207,7 +207,7 @@ void ntreeShaderGetTexcoMode(struct bNodeTree *ntree, int osa, short *texco, i
|
||||
void nodeShaderSynchronizeID(struct bNode *node, int copyto);
|
||||
|
||||
/* switch material render loop */
|
||||
void (*node_shader_lamp_loop)(struct ShadeInput *, struct ShadeResult *);
|
||||
extern void (*node_shader_lamp_loop)(struct ShadeInput *, struct ShadeResult *);
|
||||
void set_node_shader_lamp_loop(void (*lamp_loop_func)(struct ShadeInput *, struct ShadeResult *));
|
||||
|
||||
|
||||
|
||||
@@ -2159,6 +2159,8 @@ void ntreeCompositExecTree(bNodeTree *ntree, RenderData *rd, int do_preview)
|
||||
|
||||
/* **************** call to switch lamploop for material node ************ */
|
||||
|
||||
void (*node_shader_lamp_loop)(struct ShadeInput *, struct ShadeResult *);
|
||||
|
||||
void set_node_shader_lamp_loop(void (*lamp_loop_func)(ShadeInput *, ShadeResult *))
|
||||
{
|
||||
node_shader_lamp_loop= lamp_loop_func;
|
||||
|
||||
Reference in New Issue
Block a user