From 3b77bd48f9c63aebd5c8bc4a126d496f503c75a7 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 12 Jan 2021 12:55:14 +0100 Subject: 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 --- source/blender/makesdna/DNA_node_types.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'source/blender/makesdna') 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 -- cgit v1.2.3