mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
Fix crash when duplicating a model when in one at a time mode
CURA-9647
This commit is contained in:
parent
d6bc4067f9
commit
90fae7ddb4
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue