From 61dd1c98fde94a6b1feb8f001aac8c1e02ab8f7f Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Wed, 20 Dec 2017 13:16:29 +0100 Subject: [PATCH] Fix cases with no per-object settings stack CURA-4705 --- plugins/CuraEngineBackend/StartSliceJob.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/CuraEngineBackend/StartSliceJob.py b/plugins/CuraEngineBackend/StartSliceJob.py index f12b8e656f..4da26aa78f 100644 --- a/plugins/CuraEngineBackend/StartSliceJob.py +++ b/plugins/CuraEngineBackend/StartSliceJob.py @@ -139,7 +139,9 @@ class StartSliceJob(Job): for node in DepthFirstIterator(self._scene.getRoot()): if node.callDecoration("isSliceable") and type(node) is SceneNode and node.getMeshData() and node.getMeshData().getVertices() is not None: per_object_stack = node.callDecoration("getStack") - is_non_printing_mesh = any(per_object_stack.getProperty(key, "value") for key in NON_PRINTING_MESH_SETTINGS) + is_non_printing_mesh = False + if per_object_stack: + is_non_printing_mesh = any(per_object_stack.getProperty(key, "value") for key in NON_PRINTING_MESH_SETTINGS) if not getattr(node, "_outside_buildarea", False) or not is_non_printing_mesh: temp_list.append(node)