Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_stabilize2d.cc
- This file was moved from source/blender/nodes/composite/nodes/node_composite_stabilize2d.c.
| Show All 15 Lines | |||||
| * The Original Code is Copyright (C) 2011 Blender Foundation. | * The Original Code is Copyright (C) 2011 Blender Foundation. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| */ | */ | ||||
| /** \file | /** \file | ||||
| * \ingroup cmpnodes | * \ingroup cmpnodes | ||||
| */ | */ | ||||
| #include "node_composite_util.h" | #include "node_composite_util.hh" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_lib_id.h" | #include "BKE_lib_id.h" | ||||
| /* **************** Translate ******************** */ | /* **************** Translate ******************** */ | ||||
| static bNodeSocketTemplate cmp_node_stabilize2d_in[] = { | static bNodeSocketTemplate cmp_node_stabilize2d_in[] = { | ||||
| {SOCK_RGBA, N_("Image"), 0.8f, 0.8f, 0.8f, 1.0f, 0.0f, 1.0f}, | {SOCK_RGBA, N_("Image"), 0.8f, 0.8f, 0.8f, 1.0f, 0.0f, 1.0f}, | ||||
| {-1, ""}, | {-1, ""}, | ||||
| }; | }; | ||||
| static bNodeSocketTemplate cmp_node_stabilize2d_out[] = { | static bNodeSocketTemplate cmp_node_stabilize2d_out[] = { | ||||
| {SOCK_RGBA, N_("Image")}, | {SOCK_RGBA, N_("Image")}, | ||||
| {-1, ""}, | {-1, ""}, | ||||
| }; | }; | ||||
| static void init(const bContext *C, PointerRNA *ptr) | static void init(const bContext *C, PointerRNA *ptr) | ||||
| { | { | ||||
| bNode *node = ptr->data; | bNode *node = (bNode *)ptr->data; | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| node->id = (ID *)scene->clip; | node->id = (ID *)scene->clip; | ||||
| id_us_plus(node->id); | id_us_plus(node->id); | ||||
| /* default to bilinear, see node_sampler_type_items in rna_nodetree.c */ | /* default to bilinear, see node_sampler_type_items in rna_nodetree.c */ | ||||
| node->custom1 = 1; | node->custom1 = 1; | ||||
| } | } | ||||
| Show All 11 Lines | |||||