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

« back to all changes in this revision

Viewing changes to source/blender/nodes/composite/nodes/node_composite_blur.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:
36
36
/* **************** BLUR ******************** */
37
37
static bNodeSocketTemplate cmp_node_blur_in[] = {
38
38
        {   SOCK_RGBA, 1, N_("Image"),          1.0f, 1.0f, 1.0f, 1.0f},
39
 
        {   SOCK_FLOAT, 1, N_("Size"),          1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR},
 
39
        {   SOCK_FLOAT, 1, N_("Size"),          1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_NONE},
40
40
        {   -1, 0, ""   }
41
41
};
42
42
static bNodeSocketTemplate cmp_node_blur_out[] = {
44
44
        {   -1, 0, ""   }
45
45
};
46
46
 
47
 
static void node_composit_init_blur(bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
 
47
static void node_composit_init_blur(bNodeTree *UNUSED(ntree), bNode *node)
48
48
{
49
49
        NodeBlurData *data = MEM_callocN(sizeof(NodeBlurData), "node blur data");
50
50
        data->filtertype = R_FILTER_GAUSS;
51
51
        node->storage = data;
52
52
}
53
53
 
54
 
void register_node_type_cmp_blur(bNodeTreeType *ttype)
 
54
void register_node_type_cmp_blur(void)
55
55
{
56
56
        static bNodeType ntype;
57
57
 
58
 
        node_type_base(ttype, &ntype, CMP_NODE_BLUR, "Blur", NODE_CLASS_OP_FILTER, NODE_PREVIEW | NODE_OPTIONS);
 
58
        cmp_node_type_base(&ntype, CMP_NODE_BLUR, "Blur", NODE_CLASS_OP_FILTER, NODE_PREVIEW);
59
59
        node_type_socket_templates(&ntype, cmp_node_blur_in, cmp_node_blur_out);
60
 
        node_type_size(&ntype, 120, 80, 200);
61
60
        node_type_init(&ntype, node_composit_init_blur);
62
61
        node_type_storage(&ntype, "NodeBlurData", node_free_standard_storage, node_copy_standard_storage);
63
62
 
64
 
        nodeRegisterType(ttype, &ntype);
 
63
        nodeRegisterType(&ntype);
65
64
}