diff options
author | Dilith Jayakody <dilithjay@gmail.com> | 2022-03-11 16:07:55 +0300 |
---|---|---|
committer | Dilith Jayakody <dilithjay@gmail.com> | 2022-03-12 07:49:26 +0300 |
commit | 39c070ed8f7fb57bf1297177a391b853f33ba59d (patch) | |
tree | c3be6be8f705a2de90d41c8ffdec740c982c6b48 /source/blender/nodes | |
parent | f19582ebf489c360f0f5fbad3cd5590d1e7ba462 (diff) |
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
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc index 0b01efc4e9e..81ca87eec25 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc @@ -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]); } } |