Fix #120457: interpolating curves ignores cyclic attributes

`interpolate_curve_attributes()` did not transfer `cyclic` attribute to
target curves. This fixes the the problem and allows Interpolate
Curves node to interpolate cyclic curves and also work between a cyclic
curve and a non-cyclic curve.

Pull Request: https://projects.blender.org/blender/blender/pulls/120460
This commit is contained in:
YimingWu
2024-04-11 15:12:13 +02:00
committed by Jacques Lucke
parent 549d02637a
commit e7e3767056

View File

@@ -470,7 +470,8 @@ static void interpolate_curve_attributes(bke::CurvesGeometry &child_curves,
if (type == CD_PROP_STRING) {
return true;
}
if (guide_curve_attributes.is_builtin(id) && !ELEM(id.name(), "radius", "tilt", "resolution"))
if (guide_curve_attributes.is_builtin(id) &&
!ELEM(id.name(), "radius", "tilt", "resolution", "cyclic"))
{
return true;
}