diff options
author | Jacques Lucke <jacques@blender.org> | 2021-01-12 14:55:14 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-01-12 14:55:14 +0300 |
commit | 3b77bd48f9c63aebd5c8bc4a126d496f503c75a7 (patch) | |
tree | 0b45925a0b6ef0aa963732ec4dacf6fce16803bc /source/blender/makesdna | |
parent | 3a254b93fd8597c47fc4fe55fa0417d1f9fa85fc (diff) |
Geometry Nodes: new Align Rotation to Vector node
This adds a new Align Rotation to Vector node based on the mockup
in T83669.
Reviewers: HooglyBoogly, simonthommes
Differential Revision: https://developer.blender.org/D10081
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_node_types.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index 70084f52753..fd2c54e7653 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -1141,6 +1141,17 @@ typedef struct NodeGeometryRotatePoints { char _pad[3]; } NodeGeometryRotatePoints; +typedef struct NodeGeometryAlignRotationToVector { + /* GeometryNodeAlignRotationToVectorAxis */ + uint8_t axis; + + /* GeometryNodeAttributeInputMode */ + uint8_t input_type_factor; + uint8_t input_type_vector; + + char _pad[5]; +} NodeGeometryAlignRotationToVector; + /* script node mode */ #define NODE_SCRIPT_INTERNAL 0 #define NODE_SCRIPT_EXTERNAL 1 @@ -1576,6 +1587,12 @@ typedef enum GeometryNodeRotatePointsSpace { GEO_NODE_ROTATE_POINTS_SPACE_POINT = 1, } GeometryNodeRotatePointsSpace; +typedef enum GeometryNodeAlignRotationToVectorAxis { + GEO_NODE_ALIGN_ROTATION_TO_VECTOR_AXIS_X = 0, + GEO_NODE_ALIGN_ROTATION_TO_VECTOR_AXIS_Y = 1, + GEO_NODE_ALIGN_ROTATION_TO_VECTOR_AXIS_Z = 2, +} GeometryNodeAlignRotationToVectorAxis; + #ifdef __cplusplus } #endif |