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...
This commit is contained in:
2011-11-20 16:13:27 +00:00
parent af66321f3b
commit ca7d391de8
141 changed files with 843 additions and 1025 deletions

View File

@@ -82,20 +82,16 @@ static void node_composit_init_map_value(bNodeTree *UNUSED(ntree), bNode* node,
node->storage= add_tex_mapping();
}
void register_node_type_cmp_map_value(ListBase *lb)
void register_node_type_cmp_map_value(bNodeTreeType *ttype)
{
static bNodeType ntype;
node_type_base(&ntype, CMP_NODE_MAP_VALUE, "Map Value", NODE_CLASS_OP_VECTOR, NODE_OPTIONS);
node_type_base(ttype, &ntype, CMP_NODE_MAP_VALUE, "Map Value", NODE_CLASS_OP_VECTOR, NODE_OPTIONS);
node_type_socket_templates(&ntype, cmp_node_map_value_in, cmp_node_map_value_out);
node_type_size(&ntype, 100, 60, 150);
node_type_init(&ntype, node_composit_init_map_value);
node_type_storage(&ntype, "TexMapping", node_free_standard_storage, node_copy_standard_storage);
node_type_exec(&ntype, node_composit_exec_map_value);
nodeRegisterType(lb, &ntype);
nodeRegisterType(ttype, &ntype);
}