2D stabilization default filter to bilinear
This commit is contained in:
@@ -182,6 +182,7 @@ void BKE_tracking_settings_init(MovieTracking *tracking)
|
||||
tracking->stabilization.locinf = 1.0f;
|
||||
tracking->stabilization.rotinf = 1.0f;
|
||||
tracking->stabilization.maxscale = 2.0f;
|
||||
tracking->stabilization.filter = TRACKING_FILTER_BILINEAR;
|
||||
|
||||
BKE_tracking_object_add(tracking, "Camera");
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user