Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_node_types.h
| Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | typedef struct bNodeSocket { | ||||
| float locx, locy; | float locx, locy; | ||||
| void *default_value; /* default input value used for unlinked sockets */ | void *default_value; /* default input value used for unlinked sockets */ | ||||
| /* execution data */ | /* execution data */ | ||||
| short stack_index; /* local stack index */ | short stack_index; /* local stack index */ | ||||
| /* XXX deprecated, kept for forward compatibility */ | /* XXX deprecated, kept for forward compatibility */ | ||||
| short stack_type DNA_DEPRECATED; | short stack_type DNA_DEPRECATED; | ||||
| int pad; | char draw_shape, pad[3]; | ||||
campbellbarton: Why not make it a char ? | |||||
| void *cache; /* cached data from execution */ | void *cache; /* cached data from execution */ | ||||
| /* internal data to retrieve relations and groups | /* internal data to retrieve relations and groups | ||||
| * DEPRECATED, now uses the generic identifier string instead | * DEPRECATED, now uses the generic identifier string instead | ||||
| */ | */ | ||||
| int own_index DNA_DEPRECATED; /* group socket identifiers, to find matching pairs after reading files */ | int own_index DNA_DEPRECATED; /* group socket identifiers, to find matching pairs after reading files */ | ||||
| /* XXX deprecated, only used for restoring old group node links */ | /* XXX deprecated, only used for restoring old group node links */ | ||||
| Show All 15 Lines | typedef enum eNodeSocketDatatype { | ||||
| SOCK_RGBA = 2, | SOCK_RGBA = 2, | ||||
| SOCK_SHADER = 3, | SOCK_SHADER = 3, | ||||
| SOCK_BOOLEAN = 4, | SOCK_BOOLEAN = 4, | ||||
| __SOCK_MESH = 5, /* deprecated */ | __SOCK_MESH = 5, /* deprecated */ | ||||
| SOCK_INT = 6, | SOCK_INT = 6, | ||||
| SOCK_STRING = 7 | SOCK_STRING = 7 | ||||
| } eNodeSocketDatatype; | } eNodeSocketDatatype; | ||||
| /* socket shape */ | |||||
| typedef enum eNodeSocketShape { | |||||
| SOCK_SHAPE_CIRCLE = 1, | |||||
campbellbartonUnsubmitted Done Inline ActionsBest to make this zero, otherwise Python API won't properly be able to access the values, even if they draw. campbellbarton: Best to make this zero, otherwise Python API won't properly be able to access the values, even… | |||||
| SOCK_SHAPE_SQUARE = 2, | |||||
| SOCK_SHAPE_DIAMOND = 3 | |||||
| } eNodeSocketShape; | |||||
| /* socket side (input/output) */ | /* socket side (input/output) */ | ||||
| typedef enum eNodeSocketInOut { | typedef enum eNodeSocketInOut { | ||||
| SOCK_IN = 1, | SOCK_IN = 1, | ||||
| SOCK_OUT = 2 | SOCK_OUT = 2 | ||||
| } eNodeSocketInOut; | } eNodeSocketInOut; | ||||
| /* sock->flag, first bit is select */ | /* sock->flag, first bit is select */ | ||||
| typedef enum eNodeSocketFlag { | typedef enum eNodeSocketFlag { | ||||
| ▲ Show 20 Lines • Show All 1,007 Lines • Show Last 20 Lines | |||||
Why not make it a char ?