Skip to content

Commit

Permalink
Update OneAtATimeIterator.py
Browse files Browse the repository at this point in the history
saving node_list after sorting
  • Loading branch information
saumyaj3 authored Feb 9, 2024
1 parent 355f24e commit a7292c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cura/OneAtATimeIterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _getNodesOrderedAutomatically(hit_checker: HitChecker, node_list: List[CuraS

# Sort the original list so that items that block the most other objects are at the beginning.
# This does not decrease the worst case running time, but should improve it in most cases.
sorted(node_list, key = cmp_to_key(hit_checker.calculateScore))
node_list = sorted(node_list, key = cmp_to_key(hit_checker.calculateScore))

todo_node_list = [_ObjectOrder([], node_list)]
while len(todo_node_list) > 0:
Expand Down

0 comments on commit a7292c7

Please sign in to comment.