[Pather] fix path_into for some 2-bend cases

This commit is contained in:
Jan Petykiewicz 2025-05-28 00:39:25 -07:00
parent 35e28acb89
commit 385a37e0a2

View File

@ -541,7 +541,7 @@ class Pather(Builder):
tree2 = tool.path(ccw, length, in_ptype=in_ptype, port_names=('A', 'B'), out_ptype=out_ptype, **kwargs)
top2 = tree2.top_pattern()
jog = rotation_matrix_2d(top2['A'].rotation) @ (top2['B'].offset - top2['A'].offset)
return jog[1]
return jog[1] * [-1, 1][int(bool(ccw))]
dst_extra_args = {'out_ptype': out_ptype}
if plug_destination: