mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 16:57:51 -06:00
Fix: if load a model and scale it up to 0.1mm and then load another model then Cura will crash. It happens because the model 1 does not
have any points for arranging it on the build plate CURA-5867
This commit is contained in:
parent
7ecad41625
commit
5be8b2810d
1 changed files with 5 additions and 0 deletions
|
@ -66,6 +66,11 @@ class Arrange:
|
|||
continue
|
||||
vertices = vertices.getMinkowskiHull(Polygon.approximatedCircle(min_offset))
|
||||
points = copy.deepcopy(vertices._points)
|
||||
|
||||
# After scaling (like up to 0.1 mm) the node might not have points
|
||||
if len(points) == 0:
|
||||
continue
|
||||
|
||||
shape_arr = ShapeArray.fromPolygon(points, scale = scale)
|
||||
arranger.place(0, 0, shape_arr)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue