Skip to content

Commit

Permalink
fix flipEdge not taking into account FirstParameter and LastParameter…
Browse files Browse the repository at this point in the history
… for splines
  • Loading branch information
jffmichi committed Aug 1, 2023
1 parent f803f14 commit 3d685d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Path/Path/Geom.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def flipEdge(edge):
poles, mults, knots, perio, degree, weights, ratio
)

return Part.Edge(flipped)
return Part.Edge(flipped, spline.LastParameter - edge.LastParameter, spline.LastParameter - edge.FirstParameter)
elif type(edge.Curve) == Part.OffsetCurve:
return edge.reversed()

Expand Down

0 comments on commit 3d685d5

Please sign in to comment.