Merge pull request #4936 from Ultimaker/CURA-5867_scale_tool

CURA-5867 Fix: if load a model and scale it up to 0.1mm and then load another m…
This commit is contained in:
alekseisasin 2018-12-18 15:59:53 +01:00 committed by GitHub
commit 59f38c66a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)