mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 13:49:39 +08:00
Simplify ifstatement for MultiplyObjects
CURA-7851
This commit is contained in:
parent
96d381a895
commit
fa4f567cb1
@ -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…
x
Reference in New Issue
Block a user