Fix T92640: Crash with instance input to reverse curve node

`extract_input` can only run once.
This commit is contained in:
Hans Goudey 2021-11-01 14:42:19 -05:00
parent 1c0be7da4c
commit 55e68f1b70
Notes: blender-bot 2023-02-13 17:16:23 +01:00
Referenced by issue #92640, Geometry Nodes: Crash when "Reverse Curve" is used on "String to Curves"
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ static void geo_node_curve_reverse_exec(GeoNodeExecParams params)
return;
}
Field<bool> selection_field = params.extract_input<Field<bool>>("Selection");
Field<bool> selection_field = params.get_input<Field<bool>>("Selection");
CurveComponent &component = geometry_set.get_component_for_write<CurveComponent>();
GeometryComponentFieldContext field_context{component, ATTR_DOMAIN_CURVE};
const int domain_size = component.attribute_domain_size(ATTR_DOMAIN_CURVE);