Simplify ifstatement for MultiplyObjects

CURA-7851
This commit is contained in:
Jaime van Kessel 2021-10-06 15:50:12 +02:00
parent 96d381a895
commit fa4f567cb1

View File

@ -72,13 +72,13 @@ class MultiplyObjectsJob(Job):
new_node.setParent(current_node.getParent()) new_node.setParent(current_node.getParent())
found_solution_for_all = True found_solution_for_all = True
group_operation = GroupedOperation()
if nodes: if nodes:
group_operation, not_fit_count = createGroupOperationForArrange(nodes, group_operation, not_fit_count = createGroupOperationForArrange(nodes,
Application.getInstance().getBuildVolume(), Application.getInstance().getBuildVolume(),
fixed_nodes, fixed_nodes,
factor=10000, add_new_nodes_in_scene=True) factor = 10000,
else: add_new_nodes_in_scene = True)
group_operation = GroupedOperation()
if nodes_to_add_without_arrange: if nodes_to_add_without_arrange:
for nested_node in nodes_to_add_without_arrange: for nested_node in nodes_to_add_without_arrange: