diff --git a/UM/Math/Polygon.py b/UM/Math/Polygon.py index 634f54584..2fb3efbe4 100644 --- a/UM/Math/Polygon.py +++ b/UM/Math/Polygon.py @@ -172,7 +172,7 @@ def scale(self, factor: float, origin: Optional[List[float]] = None) -> "Polygon transformation[2][1] = delta_scale * -origin[1] # Apply that affine transformation to the point data. - point_data = numpy.lib.pad(self._points, ((0, 0), (0, 1)), "constant", constant_values = (1)) # Turn 3D to do an affine transformation. + point_data = numpy.pad(self._points, ((0, 0), (0, 1)), "constant", constant_values = (1)) # Turn 3D to do an affine transformation. point_data = point_data.dot(transformation) return Polygon(point_data[:, :-1]) # Leave out the affine component.