~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to source/blender/nodes/composite/nodes/node_composite_diffMatte.c

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        {-1, 0, ""}
46
46
};
47
47
 
48
 
static void node_composit_init_diff_matte(bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
 
48
static void node_composit_init_diff_matte(bNodeTree *UNUSED(ntree), bNode *node)
49
49
{
50
 
        NodeChroma *c= MEM_callocN(sizeof(NodeChroma), "node chroma");
51
 
        node->storage= c;
52
 
        c->t1= 0.1f;
53
 
        c->t2= 0.1f;
 
50
        NodeChroma *c = MEM_callocN(sizeof(NodeChroma), "node chroma");
 
51
        node->storage = c;
 
52
        c->t1 = 0.1f;
 
53
        c->t2 = 0.1f;
54
54
}
55
55
 
56
 
void register_node_type_cmp_diff_matte(bNodeTreeType *ttype)
 
56
void register_node_type_cmp_diff_matte(void)
57
57
{
58
58
        static bNodeType ntype;
59
59
 
60
 
        node_type_base(ttype, &ntype, CMP_NODE_DIFF_MATTE, "Difference Key", NODE_CLASS_MATTE, NODE_PREVIEW|NODE_OPTIONS);
 
60
        cmp_node_type_base(&ntype, CMP_NODE_DIFF_MATTE, "Difference Key", NODE_CLASS_MATTE, NODE_PREVIEW);
61
61
        node_type_socket_templates(&ntype, cmp_node_diff_matte_in, cmp_node_diff_matte_out);
62
 
        node_type_size(&ntype, 200, 80, 250);
63
62
        node_type_init(&ntype, node_composit_init_diff_matte);
64
63
        node_type_storage(&ntype, "NodeChroma", node_free_standard_storage, node_copy_standard_storage);
65
64
 
66
 
        nodeRegisterType(ttype, &ntype);
 
65
        nodeRegisterType(&ntype);
67
66
}