mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Simplify ifstatement for MultiplyObjects
CURA-7851
This commit is contained in:
parent
96d381a895
commit
fa4f567cb1
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue