Fixed invalidation of FDM back end if a custom per layer

extruder change is added or removed.
This commit is contained in:
bubnikv 2020-02-04 17:46:23 +01:00
parent de4c2fc2e0
commit bca3e86455

View file

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