diff options
author | Hans Goudey <h.goudey@me.com> | 2021-06-10 00:51:07 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-06-10 00:51:07 +0300 |
commit | a3226bdf3e98dc536edb77a675f1673d0cb284fa (patch) | |
tree | 048e25dd9ede1678e698a77a40be96c0b5203cfc | |
parent | d96e9de9de0be3152312823208a176bd949c3f1f (diff) |
Fix: Point translate and point scale don't execute on curve data
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_point_scale.cc | 3 | ||||
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_point_translate.cc | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_point_scale.cc b/source/blender/nodes/geometry/nodes/node_geo_point_scale.cc index 655f5475856..265ec9fb776 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_point_scale.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_point_scale.cc @@ -115,6 +115,9 @@ static void geo_node_point_scale_exec(GeoNodeExecParams params) if (geometry_set.has<PointCloudComponent>()) { execute_on_component(params, geometry_set.get_component_for_write<PointCloudComponent>()); } + if (geometry_set.has<CurveComponent>()) { + execute_on_component(params, geometry_set.get_component_for_write<CurveComponent>()); + } params.set_output("Geometry", std::move(geometry_set)); } diff --git a/source/blender/nodes/geometry/nodes/node_geo_point_translate.cc b/source/blender/nodes/geometry/nodes/node_geo_point_translate.cc index 44203228899..293f151fe19 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_point_translate.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_point_translate.cc @@ -69,6 +69,9 @@ static void geo_node_point_translate_exec(GeoNodeExecParams params) if (geometry_set.has<PointCloudComponent>()) { execute_on_component(params, geometry_set.get_component_for_write<PointCloudComponent>()); } + if (geometry_set.has<CurveComponent>()) { + execute_on_component(params, geometry_set.get_component_for_write<CurveComponent>()); + } params.set_output("Geometry", std::move(geometry_set)); } |