From 5109bd36845a49ceaf1840e70c7c89611b29a6a2 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 20 Oct 2020 14:19:33 +0200 Subject: [PATCH] Fix crash when duplicating node with support blocker Suggested & reported by smartavonics. Fixes #8581 --- cura/Arranging/Nest2DArrange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/Arranging/Nest2DArrange.py b/cura/Arranging/Nest2DArrange.py index 727504c9ff..d4da9266c7 100644 --- a/cura/Arranging/Nest2DArrange.py +++ b/cura/Arranging/Nest2DArrange.py @@ -85,7 +85,7 @@ def findNodePlacement(nodes_to_arrange: List["SceneNode"], build_volume: "BuildV converted_points = [] hull_polygon = node.callDecoration("getConvexHull") - if hull_polygon.getPoints() is not None: # numpy array has to be explicitly checked against None + if hull_polygon is not None and hull_polygon.getPoints() is not None: # 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)) item = Item(converted_points)