diff options
author | Wannes Malfait <Wannes> | 2021-02-09 20:12:24 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-02-09 20:12:24 +0300 |
commit | a2ba37e5b6310bed0d4381619a8edeae2d05fbd2 (patch) | |
tree | 3a96535d5434a1a410eb7e53cd2d9275586e8a25 /source/blender/makesdna/DNA_node_types.h | |
parent | 34155dd29bdd08295ec089866a12aed71a7665b4 (diff) |
Geometry Nodes: Add Combine and Separate XYZ nodes for attributes
These are similar to the regular "Combine XYZ" and "Separate XYZ" nodes,
but they work on attributes. They will make it easier to switch between
vector attributes and float attributes.
Differential Revision: https://developer.blender.org/D10308
Diffstat (limited to 'source/blender/makesdna/DNA_node_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_node_types.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index e8748e28776..61b0b469426 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -1216,6 +1216,20 @@ typedef struct NodeGeometryVolumeToMesh { char _pad[7]; } NodeGeometryVolumeToMesh; +typedef struct NodeAttributeCombineXYZ { + /* GeometryNodeAttributeInputMode. */ + uint8_t input_type_x; + uint8_t input_type_y; + uint8_t input_type_z; + + char _pad[1]; +} NodeAttributeCombineXYZ; + +typedef struct NodeAttributeSeparateXYZ { + /* GeometryNodeAttributeInputMode. */ + uint8_t input_type; +} NodeAttributeSeparateXYZ; + /* script node mode */ #define NODE_SCRIPT_INTERNAL 0 #define NODE_SCRIPT_EXTERNAL 1 |