From fa4f567cb14c4f77885cffe00d1b7178b6e5dba1 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 6 Oct 2021 15:50:12 +0200 Subject: [PATCH] Simplify ifstatement for MultiplyObjects CURA-7851 --- cura/MultiplyObjectsJob.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/MultiplyObjectsJob.py b/cura/MultiplyObjectsJob.py index e7890ce2eb..4a91392cde 100644 --- a/cura/MultiplyObjectsJob.py +++ b/cura/MultiplyObjectsJob.py @@ -72,13 +72,13 @@ class MultiplyObjectsJob(Job): new_node.setParent(current_node.getParent()) found_solution_for_all = True + group_operation = GroupedOperation() if nodes: group_operation, not_fit_count = createGroupOperationForArrange(nodes, Application.getInstance().getBuildVolume(), fixed_nodes, - factor=10000, add_new_nodes_in_scene=True) - else: - group_operation = GroupedOperation() + factor = 10000, + add_new_nodes_in_scene = True) if nodes_to_add_without_arrange: for nested_node in nodes_to_add_without_arrange: