From 6f8586e8cb8245b98e9b0d586ba30162c65755ca Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 21 Jul 2023 09:35:02 -0300 Subject: [PATCH] [Worksheet] Fixed rotated polygons --- CHANGELOG.md | 3 ++- kibot/kicad/worksheet.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81a67bc69..210ea9d7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.6.4] - UNRELEASED - +### Fixed +- Rotated polygons used in the worksheet (#466) ## [1.6.3] - 2023-06-26 ### Added diff --git a/kibot/kicad/worksheet.py b/kibot/kicad/worksheet.py index 2548ad279..be5ad3b41 100644 --- a/kibot/kicad/worksheet.py +++ b/kibot/kicad/worksheet.py @@ -381,7 +381,7 @@ def draw(e, p): s.SetWidth(e.line_width) s.SetLayer(p.layer) if e.rotate: - s.Rotate(pos, e.rotate*10) + s.Rotate(GS.p2v_k7(pos), e.rotate*10) p.board.Add(s) p.pcb_items.append(s) pos += posi