diff options
author | Ton Roosendaal <ton@blender.org> | 2007-03-26 19:07:38 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2007-03-26 19:07:38 +0400 |
commit | 5c760e481114da07ef2ee364bc305bb7716abe8c (patch) | |
tree | 623d328cfd9383efb051d197e6264af185cf1e37 /source/blender/nodes/intern/CMP_nodes/CMP_curves.c | |
parent | d1315a342d7db1653a7fc3cecb646ab785e08f6e (diff) |
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.
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_curves.c')
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_curves.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_curves.c b/source/blender/nodes/intern/CMP_nodes/CMP_curves.c index a7b81d425aa..7f0310de9aa 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_curves.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_curves.c @@ -59,6 +59,7 @@ static void node_composit_init_curves_time(bNode* node) } bNodeType cmp_node_curve_time= { + /* *next,*prev */ NULL, NULL, /* type code */ CMP_NODE_TIME, /* name */ "Time", /* width+range */ 140, 100, 320, @@ -98,6 +99,7 @@ static void node_composit_init_curve_vec(bNode* node) }; bNodeType cmp_node_curve_vec= { + /* *next,*prev */ NULL, NULL, /* type code */ CMP_NODE_CURVE_VEC, /* name */ "Vector Curves", /* width+range */ 200, 140, 320, @@ -180,6 +182,7 @@ static void node_composit_init_curve_rgb(bNode* node) }; bNodeType cmp_node_curve_rgb= { + /* *next,*prev */ NULL, NULL, /* type code */ CMP_NODE_CURVE_RGB, /* name */ "RGB Curves", /* width+range */ 200, 140, 320, |