Geometry Nodes: Rewrite mesh delete geometry node #108435

Merged
Hans Goudey merged 24 commits from HooglyBoogly/blender:delete-mesh-rewrite into main 2023-06-01 14:55:27 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 4aae63f880 - Show all commits

View File

@ -1191,7 +1191,7 @@ CurvesGeometry curves_copy_curve_selection(
MutableAttributeAccessor dst_attributes = dst_curves.attributes_for_write(); MutableAttributeAccessor dst_attributes = dst_curves.attributes_for_write();
gather_attributes_group_to_group(src_attributes, gather_attributes_group_to_group(src_attributes,
ATTR_DOMAIN_CURVE, ATTR_DOMAIN_POINT,
propagation_info, propagation_info,
{}, {},
points_by_curve, points_by_curve,

View File

@ -38,7 +38,7 @@ template<typename T> class OffsetIndices {
/** Return the total number of elements in the referenced arrays. */ /** Return the total number of elements in the referenced arrays. */
T total_size() const T total_size() const
{ {
return offsets_.is_empty() ? 0 : offsets_.last(); return offsets_.size() > 1 ? offsets_.last() : 0;
} }
/** /**