blender/tests/files/modeling/geometry_nodes/essentials
Tibo Stans 6c32445e61 Fix #160113: Prevent Curve to Tube from merging uncapped endpoints
`Curve to Tube` could change the tube profile when cap merging was
enabled with an empty custom start or end cap.

All tube endpoints were included in the final `Merge by Distance`,
even when the corresponding custom cap contained no mesh faces.
With multi-spline profiles, this could merge vertices from separate
profile splines and deform the endpoint rings.

Check the custom start and end cap sources independently and only
enable welding at the corresponding tube endpoint when that cap
contains mesh faces. Existing behavior for flat caps, round caps, and
valid custom caps remains unchanged.

Add a `.blend` regression test that links the bundled `Curve to Tube`
asset and covers a multi-spline profile with empty custom caps.
The test fails with the previous asset because the endpoint vertices
are incorrectly merged.

This also fixes that the start and end cap were previously swapped
when using custom caps.

---

Addresses #160113.
Source asset change: blender/blender-assets#84

Pull Request: https://projects.blender.org/blender/blender/pulls/161707

---------

Co-authored-by: Tibo Stans <192132910+stanzerelli@users.noreply.github.com>
Co-authored-by: Simon Thommes <simon@blender.org>
2026-08-21 11:07:16 +02:00
..
array.blend
curve_to_tube_custom_caps.blend Fix #160113: Prevent Curve to Tube from merging uncapped endpoints 2026-08-21 11:07:16 +02:00
scatter_on_surface.blend