diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2007-04-04 17:58:12 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2007-04-04 17:58:12 +0400 |
commit | fb0f61c0b09aedaf536369becdc9e9e77609275f (patch) | |
tree | e48cfe75de05619b5de5cc5c04ffaec7597629e4 /source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c | |
parent | afdd54fa3720c267f30e48ed45c449d80449bac0 (diff) |
=== Node editor ===
* refactor copying and freeing of node->storage by handlerizing them.
- freestoragefunc
- copystoragefunc
- node_util.c/h have generic handlers for these.
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c')
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c b/source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c index d909e47538f..973d74d71ff 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c @@ -105,15 +105,18 @@ static void node_composit_init_luma_matte(bNode *node) bNodeType cmp_node_luma_matte={ /* *next,*prev */ NULL, NULL, - /* type code */ CMP_NODE_LUMA_MATTE, - /* name */ "Luminance Key", - /* width+range */ 200, 80, 250, - /* class+opts */ NODE_CLASS_MATTE, NODE_PREVIEW|NODE_OPTIONS, - /* input sock */ cmp_node_luma_matte_in, - /* output sock */ cmp_node_luma_matte_out, - /* storage */ "NodeChroma", - /* execfunc */ node_composit_exec_luma_matte, - /* butfunc */ NULL, - /* initfunc */ node_composit_init_luma_matte + /* type code */ CMP_NODE_LUMA_MATTE, + /* name */ "Luminance Key", + /* width+range */ 200, 80, 250, + /* class+opts */ NODE_CLASS_MATTE, NODE_PREVIEW|NODE_OPTIONS, + /* input sock */ cmp_node_luma_matte_in, + /* output sock */ cmp_node_luma_matte_out, + /* storage */ "NodeChroma", + /* execfunc */ node_composit_exec_luma_matte, + /* butfunc */ NULL, + /* initfunc */ node_composit_init_luma_matte, + /* freestoragefunc */ node_free_standard_storage, + /* copystoragefunc */ node_copy_standard_storage, + /* id */ NULL }; |