Skip to content

Commit

Permalink
[Worksheet] Fixed rotated polygons
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jul 21, 2023
1 parent 3460cdc commit 6f8586e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion kibot/kicad/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f8586e

Please sign in to comment.