Skip to content

Commit

Permalink
Merge pull request #904 from Ultimaker/CURA-10004_fix_crash_small_rot…
Browse files Browse the repository at this point in the history
…ations

Fix numpy exception with polygon scaling
  • Loading branch information
casperlamboo authored Sep 19, 2023
2 parents 50511d9 + 027f923 commit aac43c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UM/Math/Polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ def scale(self, factor: float, origin: Optional[List[float]] = None) -> "Polygon
point. If `None`, the 0,0 coordinate will be used.
:return: A transformed polygon.
"""
if not self.isValid():
return self

if origin is None:
origin = [0, 0]

Expand Down

0 comments on commit aac43c3

Please sign in to comment.