diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_duplicate_elements.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_duplicate_elements.cc b/source/blender/nodes/geometry/nodes/node_geo_duplicate_elements.cc index 4c1d26e1012..c247a255e5b 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_duplicate_elements.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_duplicate_elements.cc @@ -771,6 +771,9 @@ static void duplicate_points_curve(const GeometryComponentType component_type, { const GeometryComponent &src_component = *geometry_set.get_component_for_read(component_type); const int domain_size = src_component.attribute_domain_size(ATTR_DOMAIN_POINT); + if (domain_size == 0) { + return; + } GeometryComponentFieldContext field_context{src_component, ATTR_DOMAIN_POINT}; FieldEvaluator evaluator{field_context, domain_size}; |