Merging r39717 through r39983 from trunk into soc-2011-tomato
[blender.git] / source / blender / nodes / composite / nodes / node_composite_stabilize2d.c
  */
 
 
-#include "../CMP_util.h"
+#include "node_composite_util.h"
 
 /* **************** Translate  ******************** */
 
-static bNodeSocketType cmp_node_stabilize2d_in[]= {
+static bNodeSocketTemplate cmp_node_stabilize2d_in[]= {
        {       SOCK_RGBA, 1, "Image",                  0.8f, 0.8f, 0.8f, 1.0f, 0.0f, 1.0f},
        {       -1, 0, ""       }
 };
 
-static bNodeSocketType cmp_node_stabilize2d_out[]= {
-       {       SOCK_RGBA, 0, "Image",                  0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
+static bNodeSocketTemplate cmp_node_stabilize2d_out[]= {
+       {       SOCK_RGBA, 0, "Image"},
        {       -1, 0, ""       }
 };
 
@@ -72,8 +72,8 @@ void register_node_type_cmp_stabilize2d(ListBase *lb)
 {
        static bNodeType ntype;
 
-       node_type_base(&ntype, CMP_NODE_STABILIZE2D, "Stabilize 2D", NODE_CLASS_DISTORT, NODE_OPTIONS,
-               cmp_node_stabilize2d_in, cmp_node_stabilize2d_out);
+       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_size(&ntype, 140, 100, 320);
        node_type_exec(&ntype, node_composit_exec_stabilize2d);