Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_blur.cc
| Show All 38 Lines | static void cmp_node_blur_declare(NodeDeclarationBuilder &b) | ||||
| b.add_input<decl::Float>(N_("Size")).default_value(1.0f).min(0.0f).max(1.0f); | b.add_input<decl::Float>(N_("Size")).default_value(1.0f).min(0.0f).max(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_blur(bNodeTree *UNUSED(ntree), bNode *node) | static void node_composit_init_blur(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeBlurData *data = MEM_cnew<NodeBlurData>(__func__); | NodeBlurData *data = MEM_cnew<NodeBlurData>(MEM_AT); | ||||
| data->filtertype = R_FILTER_GAUSS; | data->filtertype = R_FILTER_GAUSS; | ||||
| node->storage = data; | node->storage = data; | ||||
| } | } | ||||
| static void node_composit_buts_blur(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_blur(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiLayout *col, *row; | uiLayout *col, *row; | ||||
| ▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines | |||||