Fix multiply object in a rare case that an object is just too big

This commit is contained in:
Jack Ha 2018-05-30 10:58:19 +02:00
parent b43806fd4b
commit ed0a0dd765

View file

@ -1,6 +1,8 @@
# Copyright (c) 2017 Ultimaker B.V.
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import copy
from UM.Job import Job
from UM.Operations.GroupedOperation import GroupedOperation
from UM.Message import Message
@ -64,6 +66,8 @@ class MultiplyObjectsJob(Job):
# We do place the nodes one by one, as we want to yield in between.
if not node_too_big:
new_node, solution_found = arranger.findNodePlacement(current_node, offset_shape_arr, hull_shape_arr)
else:
new_node = copy.deepcopy(node)
if node_too_big or not solution_found:
found_solution_for_all = False
new_location = new_node.getPosition()