[polygon] Only call rotate if necessary
This commit is contained in:
parent
29c5d0fd32
commit
8c11fd1094
1 changed files with 2 additions and 1 deletions
|
|
@ -105,6 +105,7 @@ 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 {}
|
||||||
|
if rotation:
|
||||||
self.rotate(rotation)
|
self.rotate(rotation)
|
||||||
|
|
||||||
def __deepcopy__(self, memo: dict | None = None) -> 'Polygon':
|
def __deepcopy__(self, memo: dict | None = None) -> 'Polygon':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue