Actually execute the reverse pass in reverse

As it should.

Contributes to issue CURA-5561.
This commit is contained in:
Ghostkeeper 2018-09-05 09:46:07 +02:00
parent 5e85af30de
commit 0ad644386e
No known key found for this signature in database
GPG Key ID: 5252B696FB5E7C7A

View File

@ -435,7 +435,7 @@ class CommandBuffer:
#Second pass: Reverse kernel.
kernel_commands = [None, None, None]
for cmd in self._all_commands:
for cmd in reversed(self._all_commands):
if cmd.estimated_exec_time_in_ms >= 0:
continue #Not a movement command.
kernel_commands[2] = kernel_commands[1]