diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-04-08 15:26:56 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-04-08 15:26:56 +0400 |
commit | 1c35203249178ac0c128cedf40ed54da108d647f (patch) | |
tree | 137b3a364e17a5e9fb239bbcc3d126401e73f196 /source | |
parent | 51a937039e42b50c232661c53bf9621ce44c6b94 (diff) |
2D stabilization default filter to bilinear
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/tracking.c | 1 | ||||
-rw-r--r-- | source/blender/nodes/composite/nodes/node_composite_stabilize2d.c | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/tracking.c b/source/blender/blenkernel/intern/tracking.c index 6a7fce4a0a3..7dd204a2463 100644 --- a/source/blender/blenkernel/intern/tracking.c +++ b/source/blender/blenkernel/intern/tracking.c @@ -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"); } 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); } |