[polygon] Only call rotate if necessary
This commit is contained in:
parent
c1bfee1ddd
commit
35e28acb89
@ -107,6 +107,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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user