diff options
author | Jack Ha <jackha@gmail.com> | 2018-05-30 11:58:19 +0300 |
---|---|---|
committer | Jack Ha <jackha@gmail.com> | 2018-05-30 11:58:19 +0300 |
commit | ed0a0dd7651d90c271b87b05e87427253a2d0583 (patch) | |
tree | b10e7e473ee053464c108be567399d008943115e /cura/MultiplyObjectsJob.py | |
parent | b43806fd4bc6ac33180d924373a2794a77e1c77d (diff) |
Fix multiply object in a rare case that an object is just too big
Diffstat (limited to 'cura/MultiplyObjectsJob.py')
-rw-r--r-- | cura/MultiplyObjectsJob.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cura/MultiplyObjectsJob.py b/cura/MultiplyObjectsJob.py index 46f7f56f8a..af24036eeb 100644 --- a/cura/MultiplyObjectsJob.py +++ b/cura/MultiplyObjectsJob.py @@ -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() |