mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 11:39:02 +08:00
Update OneAtATimeIterator.py
saving node_list after sorting
This commit is contained in:
parent
355f24e29f
commit
a7292c7baf
@ -68,7 +68,7 @@ class OneAtATimeIterator(Iterator.Iterator):
|
|||||||
|
|
||||||
# Sort the original list so that items that block the most other objects are at the beginning.
|
# 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.
|
# 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)]
|
todo_node_list = [_ObjectOrder([], node_list)]
|
||||||
while len(todo_node_list) > 0:
|
while len(todo_node_list) > 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user