Fix crash when duplicating a model when in one at a time mode

CURA-9647
This commit is contained in:
Jaime van Kessel 2022-09-16 13:28:40 +02:00
parent d6bc4067f9
commit 90fae7ddb4
No known key found for this signature in database
GPG key ID: C85F7A3AF1BAA7C4

View file

@ -390,7 +390,7 @@ class ConvexHullDecorator(SceneNodeDecorator):
if self._global_stack.getProperty("print_sequence", "value") == "one_at_a_time": 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. # Find the root node that's placed in the scene; the root of the mesh group.
ancestor = self.getNode() ancestor = self.getNode()
while ancestor.getParent() != self._root: while ancestor.getParent() != self._root and ancestor.getParent() is not None:
ancestor = ancestor.getParent() ancestor = ancestor.getParent()
center = ancestor.getBoundingBox().center center = ancestor.getBoundingBox().center
else: else: