Merged the particles-2010 branch with node improvements into trunk.
[blender-staging.git] / source / blender / nodes / composite / nodes / node_composite_flip.c
similarity index 85%
rename from source/blender/nodes/intern/CMP_nodes/CMP_flip.c
rename to source/blender/nodes/composite/nodes/node_composite_flip.c
index b5fd7b46e039a02e6f53544beb0b25d13c85a95f..026130641a3442e4f9d8fc8004cc15b4c4618645 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id$
+ * $Id: CMP_flip.c 36333 2011-04-26 09:27:43Z lukastoenne $
  *
  * ***** BEGIN GPL LICENSE BLOCK *****
  *
  * ***** END GPL LICENSE BLOCK *****
  */
 
-/** \file blender/nodes/intern/CMP_nodes/CMP_flip.c
+/** \file blender/nodes/composite/nodes/node_composite_flip.c
  *  \ingroup cmpnodes
  */
 
 
-#include "../CMP_util.h"
+#include "node_composite_util.h"
 
 /* **************** Flip  ******************** */
-static bNodeSocketType cmp_node_flip_in[]= {
-       {       SOCK_RGBA, 1, "Image",              0.8f, 0.8f, 0.8f, 1.0f, 0.0f, 1.0f},
+static bNodeSocketTemplate cmp_node_flip_in[]= {
+       {       SOCK_RGBA, 1, "Image",              0.8f, 0.8f, 0.8f, 1.0f},
        {       -1, 0, ""       }
 };
 
-static bNodeSocketType cmp_node_flip_out[]= {
-       {       SOCK_RGBA, 0, "Image",                  0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
+static bNodeSocketTemplate cmp_node_flip_out[]= {
+       {       SOCK_RGBA, 0, "Image"},
        {       -1, 0, ""       }
 };
 
@@ -94,8 +94,8 @@ void register_node_type_cmp_flip(ListBase *lb)
 {
        static bNodeType ntype;
 
-       node_type_base(&ntype, CMP_NODE_FLIP, "Flip", NODE_CLASS_DISTORT, NODE_OPTIONS,
-               cmp_node_flip_in, cmp_node_flip_out);
+       node_type_base(&ntype, CMP_NODE_FLIP, "Flip", NODE_CLASS_DISTORT, NODE_OPTIONS);
+       node_type_socket_templates(&ntype, cmp_node_flip_in, cmp_node_flip_out);
        node_type_size(&ntype, 140, 100, 320);
        node_type_exec(&ntype, node_composit_exec_flip);