From 90fae7ddb47ed575d6929bfbd7b9985ea64b9111 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 16 Sep 2022 13:28:40 +0200 Subject: Fix crash when duplicating a model when in one at a time mode CURA-9647 --- cura/Scene/ConvexHullDecorator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/Scene/ConvexHullDecorator.py b/cura/Scene/ConvexHullDecorator.py index b15eaf2ae1..06ec247ae4 100644 --- a/cura/Scene/ConvexHullDecorator.py +++ b/cura/Scene/ConvexHullDecorator.py @@ -390,7 +390,7 @@ class ConvexHullDecorator(SceneNodeDecorator): if self._global_stack.getProperty("print_sequence", "value") == "one_at_a_time": # Find the root node that's placed in the scene; the root of the mesh group. ancestor = self.getNode() - while ancestor.getParent() != self._root: + while ancestor.getParent() != self._root and ancestor.getParent() is not None: ancestor = ancestor.getParent() center = ancestor.getBoundingBox().center else: -- cgit v1.2.3