Fixed invalidation of FDM back end if a custom per layer
extruder change is added or removed.
This commit is contained in:
parent
de4c2fc2e0
commit
bca3e86455
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ static bool custom_per_printz_gcodes_tool_changes_differ(const std::vector<Custo
|
|||
{
|
||||
auto it_a = va.begin();
|
||||
auto it_b = vb.begin();
|
||||
while (it_a != va.end() && it_b != vb.end()) {
|
||||
while (it_a != va.end() || it_b != vb.end()) {
|
||||
if (it_a != va.end() && it_a->gcode != ToolChangeCode) {
|
||||
// Skip any CustomGCode items, which are not tool changes.
|
||||
++ it_a;
|
||||
|
|
Loading…
Reference in a new issue