diff options
author | Jaime van Kessel <nallath@gmail.com> | 2020-01-10 18:37:46 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2020-01-10 18:37:46 +0300 |
commit | e74f049142811d4ed5ce6406bc0075fd4f7c68ee (patch) | |
tree | 3671ccf6f11aa946a78c54a513b0884c692a41b2 /cura/MultiplyObjectsJob.py | |
parent | bb52ba6848dd8319a5cf10bd5e2eaba994f159a5 (diff) |
Fix bunch of issues found by pylint
Diffstat (limited to 'cura/MultiplyObjectsJob.py')
-rw-r--r-- | cura/MultiplyObjectsJob.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cura/MultiplyObjectsJob.py b/cura/MultiplyObjectsJob.py index 5c25f70336..134e579746 100644 --- a/cura/MultiplyObjectsJob.py +++ b/cura/MultiplyObjectsJob.py @@ -47,7 +47,7 @@ class MultiplyObjectsJob(Job): nodes = [] not_fit_count = 0 - + found_solution_for_all = False for node in self._objects: # If object is part of a group, multiply group current_node = node @@ -66,7 +66,7 @@ class MultiplyObjectsJob(Job): found_solution_for_all = True arranger.resetLastPriority() - for i in range(self._count): + for _ in range(self._count): # We do place the nodes one by one, as we want to yield in between. new_node = copy.deepcopy(node) solution_found = False @@ -98,10 +98,10 @@ class MultiplyObjectsJob(Job): Job.yieldThread() if nodes: - op = GroupedOperation() + operation = GroupedOperation() for new_node in nodes: - op.addOperation(AddSceneNodeOperation(new_node, current_node.getParent())) - op.push() + operation.addOperation(AddSceneNodeOperation(new_node, current_node.getParent())) + operation.push() status_message.hide() if not found_solution_for_all: |