Fix T92241: curve radius and tilt swapped after resampling

This only happened when the spline contained a single point.
This commit is contained in:
2021-10-27 12:36:42 +02:00
parent c06a86f99f
commit 051bb46c55

View File

@@ -79,7 +79,7 @@ static SplinePtr resample_spline(const Spline &src, const int count)
Spline::copy_base_settings(src, *dst);
if (src.evaluated_edges_size() < 1 || count == 1) {
dst->add_point(src.positions().first(), src.tilts().first(), src.radii().first());
dst->add_point(src.positions().first(), src.radii().first(), src.tilts().first());
dst->attributes.reallocate(1);
src.attributes.foreach_attribute(
[&](const AttributeIDRef &attribute_id, const AttributeMetaData &meta_data) {