Fix T96229: GN Fillet Node unexpected limit radius behavior for 3 point splines

This commit fixes T96229.

The maximum possible radius was being used for 3 point
splines, regardless of the current radius.

Reviewed By: HooglyBoogly

Maniphest Tasks: T96229

Differential Revision: https://developer.blender.org/D14311
This commit is contained in:
Dilith Jayakody 2022-03-11 18:37:55 +05:30
parent f19582ebf4
commit 39c070ed8f
Notes: blender-bot 2023-02-14 10:21:15 +01:00
Referenced by issue #96229, GN Fillet Curves does not respect radius when Limit Radius is checked and curve only has 3 points
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ static void limit_radii(FilletData &fd, const bool cyclic)
/* Assign the max_radii to the fillet data's radii. */
for (const int i : IndexRange(size)) {
radii[i] = max_radii[i];
radii[i] = std::min(radii[i], max_radii[i]);
}
}