Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc4
1 files changed, 2 insertions, 2 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 24d72ad553b..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]);
}
}
@@ -606,7 +606,7 @@ static void calculate_curve_fillet(GeometrySet &geometry_set,
const std::unique_ptr<CurveEval> input_curve = curves_to_curve_eval(*component.get_for_read());
std::unique_ptr<CurveEval> output_curve = fillet_curve(*input_curve, fillet_param);
- geometry_set.replace_curve(curve_eval_to_curves(*output_curve));
+ geometry_set.replace_curves(curve_eval_to_curves(*output_curve));
}
static void node_geo_exec(GeoNodeExecParams params)