From cc549932c4ded5b4b645d559369444a2b579c0cc Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 18 Oct 2016 11:48:23 +0200 Subject: [PATCH] ConvexHull decorater no longer crashes if node has no MeshData Fixes CURA-2706 --- cura/ConvexHullDecorator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cura/ConvexHullDecorator.py b/cura/ConvexHullDecorator.py index 67c655f53d..a7d0775e21 100644 --- a/cura/ConvexHullDecorator.py +++ b/cura/ConvexHullDecorator.py @@ -200,6 +200,8 @@ class ConvexHullDecorator(SceneNodeDecorator): if len(vertex_data) >= 4: convex_hull = hull.getConvexHull() offset_hull = self._offsetHull(convex_hull) + else: + return Polygon([]) # Node has no mesh data, so just return an empty Polygon. # Store the result in the cache self._2d_convex_hull_mesh = mesh