diff options
author | Jaime van Kessel <nallath@gmail.com> | 2019-08-12 15:29:15 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2019-08-12 15:29:15 +0300 |
commit | 242c3a747069320f37810b6b292ddc01a954c99c (patch) | |
tree | 98000539e07790aafcc26cd284711cfe0e4855f7 /cura/MultiplyObjectsJob.py | |
parent | 789eddbdee299f496c01a6c885d2db84dfebde16 (diff) |
Fix crash when arranging special meshtypes
CURA-6702
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 2b7454758b..5c25f70336 100644 --- a/cura/MultiplyObjectsJob.py +++ b/cura/MultiplyObjectsJob.py @@ -71,7 +71,11 @@ class MultiplyObjectsJob(Job): new_node = copy.deepcopy(node) solution_found = False if not node_too_big: - solution_found = arranger.findNodePlacement(new_node, offset_shape_arr, hull_shape_arr) + if offset_shape_arr is not None and hull_shape_arr is not None: + solution_found = arranger.findNodePlacement(new_node, offset_shape_arr, hull_shape_arr) + else: + # The node has no shape, so no need to arrange it. The solution is simple: Do nothing. + solution_found = True if node_too_big or not solution_found: found_solution_for_all = False |