Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-04-08 15:26:56 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-04-08 15:26:56 +0400
commit1c35203249178ac0c128cedf40ed54da108d647f (patch)
tree137b3a364e17a5e9fb239bbcc3d126401e73f196 /source/blender/nodes/composite
parent51a937039e42b50c232661c53bf9621ce44c6b94 (diff)
2D stabilization default filter to bilinear
Diffstat (limited to 'source/blender/nodes/composite')
-rw-r--r--source/blender/nodes/composite/nodes/node_composite_stabilize2d.c7
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);
}