Differential D13669 Diff 46425 source/blender/nodes/composite/nodes/node_composite_planetrackdeform.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_planetrackdeform.cc
| Show All 35 Lines | static void cmp_node_planetrackdeform_declare(NodeDeclarationBuilder &b) | ||||
| b.add_output<decl::Color>(N_("Image")); | b.add_output<decl::Color>(N_("Image")); | ||||
| b.add_output<decl::Float>(N_("Plane")); | b.add_output<decl::Float>(N_("Plane")); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void init(bNodeTree *UNUSED(ntree), bNode *node) | static void init(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodePlaneTrackDeformData *data = MEM_cnew<NodePlaneTrackDeformData>(__func__); | NodePlaneTrackDeformData *data = MEM_cnew<NodePlaneTrackDeformData>(MEM_AT); | ||||
| data->motion_blur_samples = 16; | data->motion_blur_samples = 16; | ||||
| data->motion_blur_shutter = 0.5f; | data->motion_blur_shutter = 0.5f; | ||||
| node->storage = data; | node->storage = data; | ||||
| } | } | ||||
| static void node_composit_buts_planetrackdeform(uiLayout *layout, bContext *C, PointerRNA *ptr) | static void node_composit_buts_planetrackdeform(uiLayout *layout, bContext *C, PointerRNA *ptr) | ||||
| { | { | ||||
| bNode *node = (bNode *)ptr->data; | bNode *node = (bNode *)ptr->data; | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||