diff options
Diffstat (limited to 'source/blender/nodes/composite/nodes/node_composite_stabilize2d.c')
-rw-r--r-- | source/blender/nodes/composite/nodes/node_composite_stabilize2d.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_stabilize2d.c b/source/blender/nodes/composite/nodes/node_composite_stabilize2d.c index 3b85b4a6b8c..6438fbd82cd 100644 --- a/source/blender/nodes/composite/nodes/node_composite_stabilize2d.c +++ b/source/blender/nodes/composite/nodes/node_composite_stabilize2d.c @@ -45,12 +45,19 @@ static bNodeSocketTemplate cmp_node_stabilize2d_out[] = { { -1, 0, "" } }; +static void init(bNodeTree *UNUSED(ntree), bNode *node) +{ + /* default to bilinear, see node_sampler_type_items in rna_nodetree.c */ + node->custom1 = 1; +} + void register_node_type_cmp_stabilize2d(void) { static bNodeType ntype; cmp_node_type_base(&ntype, CMP_NODE_STABILIZE2D, "Stabilize 2D", NODE_CLASS_DISTORT, NODE_OPTIONS); node_type_socket_templates(&ntype, cmp_node_stabilize2d_in, cmp_node_stabilize2d_out); + node_type_init(&ntype, init); nodeRegisterType(&ntype); } |