1 2 3 4 5 6 7 8 9 10 11
|
--- a/UM/Math/Polygon.py
+++ b/UM/Math/Polygon.py
@@ -169,7 +169,7 @@
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.
|