Browse Source

Actually execute the reverse pass in reverse

As it should.

Contributes to issue CURA-5561.
Ghostkeeper 6 years ago
parent
commit
0ad644386e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      50_inst_per_sec.py

+ 1 - 1
50_inst_per_sec.py

@@ -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]