Fix #139776: Grease Pencil: Prevent fillet on empty curves

`blender::geometry::fillet_curves` should check for situations where empty
curves are passed in (this could happen in geometry nodes) and in those
cases it should not run.

Pull Request: https://projects.blender.org/blender/blender/pulls/139787
This commit is contained in:
YimingWu
2025-06-03 16:08:03 +02:00
committed by Hans Goudey
parent 89622f1f12
commit 0ed1429fd3

View File

@@ -370,6 +370,9 @@ static bke::CurvesGeometry fillet_curves(const bke::CurvesGeometry &src_curves,
const bool use_bezier_mode,
const bke::AttributeFilter &attribute_filter)
{
if (src_curves.is_empty()) {
return src_curves;
}
const OffsetIndices src_points_by_curve = src_curves.points_by_curve();
const Span<float3> positions = src_curves.positions();
const VArraySpan<bool> cyclic{src_curves.cyclic()};