[Bf-blender-cvs] [7db03a6baa4] master: Cleanup: Nodes: make it clear that SOCK_IN/_OUT are bitflags.
Bastien Montagne
noreply at git.blender.org
Thu May 23 16:37:16 CEST 2019
Commit: 7db03a6baa472e4f4daf76a95cc2291fa2599722
Author: Bastien Montagne
Date: Thu May 23 15:28:05 2019 +0200
Branches: master
https://developer.blender.org/rB7db03a6baa472e4f4daf76a95cc2291fa2599722
Cleanup: Nodes: make it clear that SOCK_IN/_OUT are bitflags.
===================================================================
M source/blender/makesdna/DNA_node_types.h
===================================================================
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 */
More information about the Bf-blender-cvs
mailing list