From 385a37e0a2e2208465608354b8df822f41a83881 Mon Sep 17 00:00:00 2001
From: Jan Petykiewicz <jan@mpxd.net>
Date: Wed, 28 May 2025 00:39:25 -0700
Subject: [PATCH] [Pather] fix path_into for some 2-bend cases

---
 masque/builder/pather.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/masque/builder/pather.py b/masque/builder/pather.py
index 87f08a3..d0deacb 100644
--- a/masque/builder/pather.py
+++ b/masque/builder/pather.py
@@ -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: