void-packages/srcpkgs/cura/patches/fix_multiply_models.patch

14 lines
816 B
Diff
Raw Normal View History

2021-11-18 21:08:00 +00:00
diff --git a/cura/Arranging/Nest2DArrange.py b/cura/Arranging/Nest2DArrange.py
index c29a0648d..dad67ba16 100644
--- a/cura/Arranging/Nest2DArrange.py
+++ b/cura/Arranging/Nest2DArrange.py
@@ -91,7 +91,7 @@ def findNodePlacement(nodes_to_arrange: List["SceneNode"], build_volume: "BuildV
if hull_polygon is not None and hull_polygon.getPoints() is not None and len(hull_polygon.getPoints()) > 2: # numpy array has to be explicitly checked against None
for point in hull_polygon.getPoints():
- converted_points.append(Point(point[0] * factor, point[1] * factor))
+ converted_points.append(Point(int(point[0] * factor), int(point[1] * factor)))
item = Item(converted_points)
item.markAsFixedInBin(0)
node_items.append(item)