[polygon] Only call rotate if necessary

This commit is contained in:
Jan Petykiewicz 2025-04-20 23:24:01 -07:00
parent 29c5d0fd32
commit 8c11fd1094

View File

@ -105,6 +105,7 @@ class Polygon(Shape):
self.offset = offset
self.repetition = repetition
self.annotations = annotations if annotations is not None else {}
if rotation:
self.rotate(rotation)
def __deepcopy__(self, memo: dict | None = None) -> 'Polygon':