[polygon] Only call rotate if necessary
This commit is contained in:
parent
29c5d0fd32
commit
8c11fd1094
@ -105,7 +105,8 @@ class Polygon(Shape):
|
|||||||
self.offset = offset
|
self.offset = offset
|
||||||
self.repetition = repetition
|
self.repetition = repetition
|
||||||
self.annotations = annotations if annotations is not None else {}
|
self.annotations = annotations if annotations is not None else {}
|
||||||
self.rotate(rotation)
|
if rotation:
|
||||||
|
self.rotate(rotation)
|
||||||
|
|
||||||
def __deepcopy__(self, memo: dict | None = None) -> 'Polygon':
|
def __deepcopy__(self, memo: dict | None = None) -> 'Polygon':
|
||||||
memo = {} if memo is None else memo
|
memo = {} if memo is None else memo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user