Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_node_types.h
| Show First 20 Lines • Show All 493 Lines • ▼ Show 20 Lines | typedef struct bNodeTree { | ||||
| float view_center[2]; | float view_center[2]; | ||||
| ListBase nodes, links; | ListBase nodes, links; | ||||
| /** Information about how inputs and outputs of the node group interact with fields. */ | /** Information about how inputs and outputs of the node group interact with fields. */ | ||||
| FieldInferencingInterfaceHandle *field_inferencing_interface; | FieldInferencingInterfaceHandle *field_inferencing_interface; | ||||
| int type; | int type; | ||||
| char _pad1[4]; | /** | ||||
| * Used to cache run-time information of the node tree. | |||||
| * #eNodeTreeRuntimeFlag. | |||||
| */ | |||||
| uint8_t runtime_flag; | |||||
jbakker: Would it be an idea to introduce a bNodeTree_Runtime struct?
| |||||
Done Inline ActionsYeah, we wanted to do that for a while now, but postponed it every time so far.. JacquesLucke: Yeah, we wanted to do that for a while now, but postponed it every time so far..
We'd probably… | |||||
Not Done Inline ActionsOk that is definitely more work. So ok from me. jbakker: Ok that is definitely more work. So ok from me. | |||||
| char _pad1[3]; | |||||
| /** | /** | ||||
| * Sockets in groups have unique identifiers, adding new sockets always | * Sockets in groups have unique identifiers, adding new sockets always | ||||
| * will increase this counter. | * will increase this counter. | ||||
| */ | */ | ||||
| int cur_index; | int cur_index; | ||||
| int flag; | int flag; | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
| /* #define NTREE_IS_LOCALIZED (1 << 5) */ | /* #define NTREE_IS_LOCALIZED (1 << 5) */ | ||||
| /* tree->execution_mode */ | /* tree->execution_mode */ | ||||
| typedef enum eNodeTreeExecutionMode { | typedef enum eNodeTreeExecutionMode { | ||||
| NTREE_EXECUTION_MODE_TILED = 0, | NTREE_EXECUTION_MODE_TILED = 0, | ||||
| NTREE_EXECUTION_MODE_FULL_FRAME = 1, | NTREE_EXECUTION_MODE_FULL_FRAME = 1, | ||||
| } eNodeTreeExecutionMode; | } eNodeTreeExecutionMode; | ||||
| typedef enum eNodeTreeRuntimeFlag { | |||||
| /** There is a node that references an image with animation. */ | |||||
| NTREE_RUNTIME_FLAG_HAS_IMAGE_ANIMATION = 1 << 0, | |||||
| } eNodeTreeRuntimeFlag; | |||||
| /* socket value structs for input buttons | /* socket value structs for input buttons | ||||
| * DEPRECATED now using ID properties | * DEPRECATED now using ID properties | ||||
| */ | */ | ||||
| typedef struct bNodeSocketValueInt { | typedef struct bNodeSocketValueInt { | ||||
| /** RNA subtype. */ | /** RNA subtype. */ | ||||
| int subtype; | int subtype; | ||||
| int value; | int value; | ||||
| ▲ Show 20 Lines • Show All 1,529 Lines • Show Last 20 Lines | |||||
Would it be an idea to introduce a bNodeTree_Runtime struct?