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:
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
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue