Skip to content

Commit

Permalink
Use simpler approach for preserving orientation of the text
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Mar 13, 2024
1 parent b4188f2 commit 495e55c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kikit/panelize.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,8 @@ def yieldMapping(old: str, new: str) -> None:
if isinstance(item, pcbnew.FIELD_TYPE) and item.IsKeepUpright():
actualOrientation = item.GetDrawRotation()
item.SetKeepUpright(False)
item.SetTextAngle(actualOrientation - footprint.GetOrientation())
alteredOrientation = item.GetDrawRotation()
item.SetTextAngle(item.GetTextAngle() + (alteredOrientation - actualOrientation))
footprint.Rotate(originPoint, rotationAngle)
footprint.Move(translation)
edges += removeCutsFromFootprint(footprint)
Expand Down

0 comments on commit 495e55c

Please sign in to comment.