diff options
author | Jacques Lucke <jacques@blender.org> | 2022-01-21 19:34:47 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-01-21 19:34:47 +0300 |
commit | d034b85f3325379c40981502e44a07e5ef4c7d14 (patch) | |
tree | 76d75daea2db72f16961f5e8c001b8e6441d72c8 /source/blender/blenkernel | |
parent | c39d514a4eacd4a883775a3fcd8b5a7d8e8e52cc (diff) |
Geometry Nodes: new Scale Elements nodes
This node can scale individual edges and faces. When multiple selected
faces/edges share the same vertices, they are scaled together.
The center and scaling factor is averaged in this case.
For some examples see D13757.
Differential Revision: https://developer.blender.org/D13757
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_node.h | 1 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/node.cc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h index ccea76fc24d..3b952204755 100644 --- a/source/blender/blenkernel/BKE_node.h +++ b/source/blender/blenkernel/BKE_node.h @@ -1631,6 +1631,7 @@ int ntreeTexExecTree(struct bNodeTree *ntree, #define GEO_NODE_FIELD_AT_INDEX 1148 #define GEO_NODE_CURVE_PRIMITIVE_ARC 1149 #define GEO_NODE_FLIP_FACES 1150 +#define GEO_NODE_SCALE_ELEMENTS 1151 /** \} */ diff --git a/source/blender/blenkernel/intern/node.cc b/source/blender/blenkernel/intern/node.cc index 9ee54c9ebeb..1acd4248639 100644 --- a/source/blender/blenkernel/intern/node.cc +++ b/source/blender/blenkernel/intern/node.cc @@ -4825,6 +4825,7 @@ static void registerGeometryNodes() register_node_type_geo_realize_instances(); register_node_type_geo_rotate_instances(); register_node_type_geo_sample_texture(); + register_node_type_geo_scale_elements(); register_node_type_geo_scale_instances(); register_node_type_geo_separate_components(); register_node_type_geo_separate_geometry(); |