Differential D13669 Diff 46388 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
| Show All 32 Lines | static void cmp_node_directional_blur_declare(NodeDeclarationBuilder &b) | ||||
| b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f}); | b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f}); | ||||
| b.add_output<decl::Color>(N_("Image")); | b.add_output<decl::Color>(N_("Image")); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| 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_cnew<NodeDBlurData>(__func__); | NodeDBlurData *ndbd = MEM_cnew<NodeDBlurData>(MEM_AT); | ||||
| 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; | ||||
| } | } | ||||
| static void node_composit_buts_dblur(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_dblur(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| Show All 35 Lines | |||||