Fix T92241: curve radius and tilt swapped after resampling
This only happened when the spline contained a single point.
This commit is contained in:
parent
c06a86f99f
commit
051bb46c55
Notes:
blender-bot
2023-02-14 11:08:33 +01:00
Referenced by issue #92241, Geometry Node: Set Tilt and Set Curve Radius node behave inconsistently when a Resample Curve node is used right after and its count set to 1.
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue