mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:49:04 +08:00
Fix kernel parameters
We did one the wrong way around and weren't safe enough with the other. Contributes to issue CURA-5561.
This commit is contained in:
parent
2cc3a593ef
commit
9a43ee4629
@ -385,9 +385,9 @@ class CommandBuffer:
|
||||
for cmd in self._all_commands:
|
||||
if cmd.estimated_exec_time_in_ms >= 0:
|
||||
continue #Not a movement command.
|
||||
kernel_commands[2] = kernel_commands[1]
|
||||
kernel_commands[1] = kernel_commands[0]
|
||||
kernel_commands[0] = cmd
|
||||
kernel_commands[0] = kernel_commands[1]
|
||||
kernel_commands[1] = kernel_commands[2]
|
||||
kernel_commands[2] = cmd
|
||||
self.forward_pass_kernel(kernel_commands[0], kernel_commands[1], kernel_commands[2])
|
||||
self.forward_pass_kernel(kernel_commands[1], kernel_commands[2], None)
|
||||
|
||||
@ -452,7 +452,7 @@ class CommandBuffer:
|
||||
"time_in_ms": total_frame_time_in_ms})
|
||||
|
||||
def reverse_pass_kernel(self, previous: Optional[Command], current: Optional[Command], next: Optional[Command]) -> None:
|
||||
if not previous:
|
||||
if not current or not next:
|
||||
return
|
||||
|
||||
#If entry speed is already at the maximum entry speed, no need to
|
||||
|
Loading…
x
Reference in New Issue
Block a user