Merge branch 'master' into blender2.8
[blender.git] / source / blender / makesdna / DNA_node_types.h
index de1214e9b3d192287f3b9e671c8ff8f7374a60fa..016de0f1cc9c68ea40012015aaa0e75333386340 100644 (file)
@@ -111,7 +111,7 @@ typedef struct bNodeSocket {
        short stack_index;                      /* local stack index */
        /* XXX deprecated, kept for forward compatibility */
        short stack_type  DNA_DEPRECATED;
-       int pad;
+       char draw_shape, pad[3];
        
        void *cache;                            /* cached data from execution */
        
@@ -143,6 +143,13 @@ typedef enum eNodeSocketDatatype {
        SOCK_STRING                     = 7
 } eNodeSocketDatatype;
 
+/* socket shape */
+typedef enum eNodeSocketDrawShape {
+       SOCK_DRAW_SHAPE_CIRCLE = 0,
+       SOCK_DRAW_SHAPE_SQUARE = 1,
+       SOCK_DRAW_SHAPE_DIAMOND = 2
+} eNodeSocketDrawShape;
+
 /* socket side (input/output) */
 typedef enum eNodeSocketInOut {
        SOCK_IN = 1,