mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:09:01 +08:00
Don't recalculate last trapezoid if last command is not a move
I think we're just missing the last trapezoid then sometimes. Let's see what the effect of that is. Contributes to issue CURA-5561.
This commit is contained in:
parent
88a84f60e0
commit
df435a4cf9
@ -392,6 +392,7 @@ class CommandBuffer:
|
|||||||
current = None
|
current = None
|
||||||
for current in self._all_commands:
|
for current in self._all_commands:
|
||||||
if current.estimated_exec_time_in_ms >= 0:
|
if current.estimated_exec_time_in_ms >= 0:
|
||||||
|
current = None
|
||||||
continue #Not a movement command.
|
continue #Not a movement command.
|
||||||
|
|
||||||
if previous:
|
if previous:
|
||||||
@ -402,7 +403,7 @@ class CommandBuffer:
|
|||||||
previous._recalculate = False
|
previous._recalculate = False
|
||||||
|
|
||||||
previous = current
|
previous = current
|
||||||
if current is not None:
|
if current is not None and current.estimated_exec_time_in_ms >= 0:
|
||||||
current.calculate_trapezoid(current._entry_speed / current._nominal_feedrate, MINIMUM_PLANNER_SPEED / current._nominal_feedrate)
|
current.calculate_trapezoid(current._entry_speed / current._nominal_feedrate, MINIMUM_PLANNER_SPEED / current._nominal_feedrate)
|
||||||
current._recalculate = False
|
current._recalculate = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user