[polygon] Only call rotate if necessary
This commit is contained in:
parent
c1bfee1ddd
commit
35e28acb89
1 changed files with 2 additions and 1 deletions
|
|
@ -107,6 +107,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