Rename last_segment to end_segment in the case it's past-the-last
Rename last_segment to end_segment in the case it's past-the-last

In this case it's past-the-last (since we're no longer connecting it up to one of the bridge vertices). Naming it last_segment is a bit deceptive then.

Contributes to issue CURA-7828.

Ultimaker/CuraEngine,Ultimaker/CuraEngine