From 5c760e481114da07ef2ee364bc305bb7716abe8c Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 26 Mar 2007 15:07:38 +0000 Subject: Changed node type definitions to use a dynamic list. This will allow python or plugin defined nodes to work as well. (And fixes compile issues with MSVC in yesterdays commit for nodes) Code provided by Nathan L. Fixes in his code: - free_nodesystem() was called too late (after guarded alloc was closed) - free_nodesystem() was freeing nodes that were not malloced even - free_nodesystem was using free, not freeN :) - the typedefs needed to be malloced yes, to allow duplicate nodes like group but also for dynamic nodes. --- source/blender/nodes/intern/CMP_nodes/CMP_mixrgb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_mixrgb.c') diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_mixrgb.c b/source/blender/nodes/intern/CMP_nodes/CMP_mixrgb.c index 662b8390e18..6a0cd63d1f1 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_mixrgb.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_mixrgb.c @@ -78,6 +78,7 @@ static void node_composit_exec_mix_rgb(void *data, bNode *node, bNodeStack **in, /* custom1 = mix type */ bNodeType cmp_node_mix_rgb= { + /* *next,*prev */ NULL, NULL, /* type code */ CMP_NODE_MIX_RGB, /* name */ "Mix", /* width+range */ 80, 60, 120, -- cgit v1.2.3