Differential D12689 Diff 42665 source/blender/nodes/composite/nodes/node_composite_directionalblur.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_directionalblur.cc
- This file was moved from source/blender/nodes/composite/nodes/node_composite_directionalblur.c.
| Show All 15 Lines | |||||
| * The Original Code is Copyright (C) 2006 Blender Foundation. | * The Original Code is Copyright (C) 2006 Blender Foundation. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| */ | */ | ||||
| /** \file | /** \file | ||||
| * \ingroup cmpnodes | * \ingroup cmpnodes | ||||
| */ | */ | ||||
| #include "node_composite_util.h" | #include "node_composite_util.hh" | ||||
| static bNodeSocketTemplate cmp_node_dblur_in[] = {{SOCK_RGBA, N_("Image"), 1.0f, 1.0f, 1.0f, 1.0f}, | static bNodeSocketTemplate cmp_node_dblur_in[] = {{SOCK_RGBA, N_("Image"), 1.0f, 1.0f, 1.0f, 1.0f}, | ||||
| {-1, ""}}; | {-1, ""}}; | ||||
| static bNodeSocketTemplate cmp_node_dblur_out[] = {{SOCK_RGBA, N_("Image")}, {-1, ""}}; | static bNodeSocketTemplate cmp_node_dblur_out[] = {{SOCK_RGBA, N_("Image")}, {-1, ""}}; | ||||
| static void node_composit_init_dblur(bNodeTree *UNUSED(ntree), bNode *node) | static void node_composit_init_dblur(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeDBlurData *ndbd = MEM_callocN(sizeof(NodeDBlurData), "node dblur data"); | NodeDBlurData *ndbd = (NodeDBlurData *)MEM_callocN(sizeof(NodeDBlurData), "node dblur data"); | ||||
| node->storage = ndbd; | node->storage = ndbd; | ||||
| ndbd->iter = 1; | ndbd->iter = 1; | ||||
| ndbd->center_x = 0.5; | ndbd->center_x = 0.5; | ||||
| ndbd->center_y = 0.5; | ndbd->center_y = 0.5; | ||||
| } | } | ||||
| void register_node_type_cmp_dblur(void) | void register_node_type_cmp_dblur(void) | ||||
| { | { | ||||
| Show All 10 Lines | |||||