diff --git a/UM/Math/Polygon.py b/UM/Math/Polygon.py index 053ac349cf..8bfb9a03f3 100644 --- a/UM/Math/Polygon.py +++ b/UM/Math/Polygon.py @@ -160,6 +160,9 @@ def scale(self, factor: float, origin: Optional[List[float]] = None) -> "Polygon point. If `None`, the 0,0 coordinate will be used. :return: A transformed polygon. """ + if not self.isValid(): + return self + if origin is None: origin = [0, 0]