mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 04:07:57 -06:00
Apply suggestions from code review
CURA-7440 Co-authored-by: Konstantinos Karmas <konskarm@gmail.com>
This commit is contained in:
parent
d801f9838a
commit
a46bf8d6fa
3 changed files with 4 additions and 3 deletions
|
@ -35,4 +35,5 @@ class ArrangeObjectsJob(Job):
|
|||
no_full_solution_message = Message(i18n_catalog.i18nc("@info:status", "Unable to find a location within the build volume for all objects"),
|
||||
title = i18n_catalog.i18nc("@info:title", "Can't Find Location"))
|
||||
no_full_solution_message.show()
|
||||
self.finished.emit(self)
|
||||
self.finished.emit(self)
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ def findNodePlacement(nodes_to_arrange: List["SceneNode"], build_volume: "BuildV
|
|||
:param build_volume: The build volume that we want to place the nodes in. It gets size & disallowed areas from this.
|
||||
:param fixed_nodes: List of nods that should not be moved, but should be used when deciding where the others nodes
|
||||
are placed.
|
||||
:param factor: The library that we use is int based. This factor defines how accuracte we want it to be.
|
||||
:param factor: The library that we use is int based. This factor defines how accurate we want it to be.
|
||||
:return:
|
||||
"""
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ class MultiplyObjectsJob(Job):
|
|||
|
||||
nodes.append(new_node)
|
||||
factor = 10000
|
||||
found_solution_for_all, node_items = findNodePlacement(nodes, Application.getInstance().getBuildVolume(), fixed_nodes, factor = 10000)
|
||||
found_solution_for_all, node_items = findNodePlacement(nodes, Application.getInstance().getBuildVolume(), fixed_nodes, factor = factor)
|
||||
not_fit_count = 0
|
||||
if nodes:
|
||||
operation = GroupedOperation()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue