diff options
author | Jaime van Kessel <nallath@gmail.com> | 2022-09-16 14:28:40 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2022-09-16 14:28:40 +0300 |
commit | 90fae7ddb47ed575d6929bfbd7b9985ea64b9111 (patch) | |
tree | f8c167fb44c0518935a0255b17ecdb0ac7eddcdb | |
parent | d6bc4067f90312afb81b730e12c9d9e820cdc616 (diff) |
Fix crash when duplicating a model when in one at a time mode
CURA-9647
-rw-r--r-- | cura/Scene/ConvexHullDecorator.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |