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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-05-23 16:28:05 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-05-23 17:37:08 +0300
commit7db03a6baa472e4f4daf76a95cc2291fa2599722 (patch)
tree49ffcab4bbde9a2e0bcbacc568cc05bd78cd3419 /source/blender/makesdna/DNA_node_types.h
parent28ad1e0b1f0ab2724fec92b1094f7e1313b0e7ab (diff)
Cleanup: Nodes: make it clear that SOCK_IN/_OUT are bitflags.
Diffstat (limited to 'source/blender/makesdna/DNA_node_types.h')
-rw-r--r--source/blender/makesdna/DNA_node_types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h
index 3890fc63f3f..342641f00ac 100644
--- a/source/blender/makesdna/DNA_node_types.h
+++ b/source/blender/makesdna/DNA_node_types.h
@@ -161,8 +161,8 @@ typedef enum eNodeSocketDrawShape {
/* socket side (input/output) */
typedef enum eNodeSocketInOut {
- SOCK_IN = 1,
- SOCK_OUT = 2,
+ SOCK_IN = 1 << 0,
+ SOCK_OUT = 1 << 1,
} eNodeSocketInOut;
/* sock->flag, first bit is select */