From 0ad644386e437f56257da64dcf7f1adeae8d5b29 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 5 Sep 2018 09:46:07 +0200 Subject: [PATCH] Actually execute the reverse pass in reverse As it should. Contributes to issue CURA-5561. --- 50_inst_per_sec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/50_inst_per_sec.py b/50_inst_per_sec.py index 3639aaec35..eec404a75f 100644 --- a/50_inst_per_sec.py +++ b/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]