diff options
author | Jacques Lucke <jacques@blender.org> | 2020-12-23 18:37:47 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-12-23 18:37:47 +0300 |
commit | d8dc4c5b32b4cb08e2d438d76f6a02e732d23220 (patch) | |
tree | ab504f1550e4d9e0843c79d1b1874b0898c528a4 /source/blender/makesdna/DNA_node_types.h | |
parent | 8a9dedf829544e30f822bcb016a9c134af6979e5 (diff) |
Geometry Nodes: new Rotate Points node
This node updates the "rotation" attribute on points.
Multiple ways to specify the rotation are supported.
Differential Revision: https://developer.blender.org/D9883
Ref T83668.
Diffstat (limited to 'source/blender/makesdna/DNA_node_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_node_types.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index 64dd489b850..3b655790de9 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -1111,6 +1111,19 @@ typedef struct NodeInputVector { float vector[3]; } NodeInputVector; +typedef struct NodeGeometryRotatePoints { + /* GeometryNodeRotatePointsType */ + uint8_t type; + /* GeometryNodeRotatePointsSpace */ + uint8_t space; + + /* GeometryNodeAttributeInputMode */ + uint8_t input_type_axis; + uint8_t input_type_angle; + uint8_t input_type_rotation; + char _pad[3]; +} NodeGeometryRotatePoints; + /* script node mode */ #define NODE_SCRIPT_INTERNAL 0 #define NODE_SCRIPT_EXTERNAL 1 @@ -1529,6 +1542,16 @@ typedef enum GeometryNodePointDistributeMethod { GEO_NODE_POINT_DISTRIBUTE_POISSON = 1, } GeometryNodePointDistributeMethod; +typedef enum GeometryNodeRotatePointsType { + GEO_NODE_ROTATE_POINTS_TYPE_EULER = 0, + GEO_NODE_ROTATE_POINTS_TYPE_AXIS_ANGLE = 1, +} GeometryNodeRotatePointsType; + +typedef enum GeometryNodeRotatePointsSpace { + GEO_NODE_ROTATE_POINTS_SPACE_OBJECT = 0, + GEO_NODE_ROTATE_POINTS_SPACE_POINT = 1, +} GeometryNodeRotatePointsSpace; + #ifdef __cplusplus } #endif |