diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2011-11-20 20:13:27 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2011-11-20 20:13:27 +0400 |
commit | ca7d391de8fddb7549c60bba63c8d4671fffb0d2 (patch) | |
tree | a25617a0af5ed3a29ae28412e8b625ac8e80e024 /source/blender/nodes/texture/nodes/node_texture_at.c | |
parent | af66321f3b7c1b84fada90fa0ab6f6e0774f4163 (diff) |
Muting node patch: first part
This allows node type init code to have access to the nodetree type object (needed to allow generic muting node initialization). Huge and boring edits...
Diffstat (limited to 'source/blender/nodes/texture/nodes/node_texture_at.c')
-rw-r--r-- | source/blender/nodes/texture/nodes/node_texture_at.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/nodes/texture/nodes/node_texture_at.c b/source/blender/nodes/texture/nodes/node_texture_at.c index 65787891602..33548be3208 100644 --- a/source/blender/nodes/texture/nodes/node_texture_at.c +++ b/source/blender/nodes/texture/nodes/node_texture_at.c @@ -58,14 +58,14 @@ static void exec(void *data, bNode *node, bNodeStack **in, bNodeStack **out) tex_output(node, in, out[0], &colorfn, data); } -void register_node_type_tex_at(ListBase *lb) +void register_node_type_tex_at(bNodeTreeType *ttype) { static bNodeType ntype; - node_type_base(&ntype, TEX_NODE_AT, "At", NODE_CLASS_DISTORT, 0); + node_type_base(ttype, &ntype, TEX_NODE_AT, "At", NODE_CLASS_DISTORT, 0); node_type_socket_templates(&ntype, inputs, outputs); node_type_size(&ntype, 140, 100, 320); node_type_exec(&ntype, exec); - nodeRegisterType(lb, &ntype); + nodeRegisterType(ttype, &ntype); } |