From 35e28acb89e4d0e460cd1d31be1407dbd80d84b5 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 10fd522..2976271 100644 --- a/masque/shapes/polygon.py +++ b/masque/shapes/polygon.py @@ -107,7 +107,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