From 4dc81bd9f7bcfe50d78abfb3705c4d340a68bbb1 Mon Sep 17 00:00:00 2001 From: jan Date: Wed, 19 Nov 2025 02:23:40 -0800 Subject: [PATCH] fixup! [Tool / AutoTool / Pather / RenderPather / PatherMixin] add support for S-bends --- masque/builder/tools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/masque/builder/tools.py b/masque/builder/tools.py index b80c1f8..1db156b 100644 --- a/masque/builder/tools.py +++ b/masque/builder/tools.py @@ -623,6 +623,8 @@ class AutoTool(Tool, metaclass=ABCMeta): out_ptype_actual = out_transition.their_port.ptype elif ccw is not None: out_ptype_actual = bend.out_port.ptype + elif not numpy.isclose(straight_length, 0): + out_ptype_actual = straight.ptype else: out_ptype_actual = self.default_out_ptype @@ -768,6 +770,8 @@ class AutoTool(Tool, metaclass=ABCMeta): out_ptype_actual = out_transition.their_port.ptype elif not numpy.isclose(jog_remaining, 0): out_ptype_actual = sbend.ptype + elif not numpy.isclose(straight_length, 0): + out_ptype_actual = straight.ptype else: out_ptype_actual = self.default_out_ptype