diff options
author | Jacques Lucke <jacques@blender.org> | 2021-08-30 17:02:58 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-08-30 17:02:58 +0300 |
commit | fb0d5124f28c639ebd49deeb461e9bb5fc8accc2 (patch) | |
tree | d48675472c0572b2eba205b2ca7382e71f5b1012 /source/blender/nodes/geometry/nodes/node_geo_curve_spline_type.cc | |
parent | 6146a679c954b9847e3775add51af4a351bc8aaf (diff) |
support anonymous attributes in foreach_attributetemp-geometry-nodes-fields--anonymous-attributes
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_curve_spline_type.cc')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_curve_spline_type.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_spline_type.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_spline_type.cc index fe3f42625ae..5c1f7fc97ab 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_curve_spline_type.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_curve_spline_type.cc @@ -78,14 +78,14 @@ template<typename CopyFn> static void copy_attributes(const Spline &input_spline, Spline &output_spline, CopyFn copy_fn) { input_spline.attributes.foreach_attribute( - [&](StringRefNull name, const AttributeMetaData &meta_data) { - std::optional<GSpan> src = input_spline.attributes.get_for_read(name); + [&](const AttributeIDRef &attribute_id, const AttributeMetaData &meta_data) { + std::optional<GSpan> src = input_spline.attributes.get_for_read(attribute_id); BLI_assert(src); - if (!output_spline.attributes.create(name, meta_data.data_type)) { + if (!output_spline.attributes.create(attribute_id, meta_data.data_type)) { BLI_assert_unreachable(); return false; } - std::optional<GMutableSpan> dst = output_spline.attributes.get_for_write(name); + std::optional<GMutableSpan> dst = output_spline.attributes.get_for_write(attribute_id); if (!dst) { BLI_assert_unreachable(); return false; |