From 8c11fd1094bc029b1cfa8a66f2488209f0e4cdb3 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 20 Apr 2025 23:24:01 -0700 Subject: [PATCH] [polygon] Only call rotate if necessary --- masque/shapes/polygon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/masque/shapes/polygon.py b/masque/shapes/polygon.py index cbcbe63..22b87cf 100644 --- a/masque/shapes/polygon.py +++ b/masque/shapes/polygon.py @@ -105,7 +105,8 @@ class Polygon(Shape): self.offset = offset self.repetition = repetition 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': memo = {} if memo is None else memo