diff options
author | Hans Goudey <h.goudey@me.com> | 2021-01-13 19:30:42 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-01-13 19:32:06 +0300 |
commit | 1f4c1c5fc73423f87b69621f0f6131b02d014a9f (patch) | |
tree | 6efee48cd919103c86ba0b1b2402b64d2e187a4a /source/blender/makesdna/DNA_node_types.h | |
parent | bae4d00e2a33e255b33b59dbd273d56f3d796f0f (diff) |
Geometry Nodes: Add "Point Translate" and "Point Scale" nodes
The translate node moves every point in the geometry, and the scale
node multiplies the "scale" attribute of the input geometry by its input.
While these operations are already possible with the "Attribute" nodes,
these new nodes fit nicely with the nodes specifically for changing the
"rotation" attribute that already exist, and they provide a simpler way
to do the same thing.
Differential Revision: https://developer.blender.org/D10100
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 c3c22b1e853..b6904f6ae5b 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -1153,6 +1153,20 @@ typedef struct NodeGeometryAlignRotationToVector { char _pad[5]; } NodeGeometryAlignRotationToVector; +typedef struct NodeGeometryPointScale { + /* GeometryNodeAttributeInputMode */ + uint8_t input_type; + + char _pad[7]; +} NodeGeometryPointScale; + +typedef struct NodeGeometryPointTranslate { + /* GeometryNodeAttributeInputMode */ + uint8_t input_type; + + char _pad[7]; +} NodeGeometryPointTranslate; + /* script node mode */ #define NODE_SCRIPT_INTERNAL 0 #define NODE_SCRIPT_EXTERNAL 1 |