Skip to content

Commit

Permalink
Fix crash when using raft with airgap pseudo-layers
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Feb 16, 2024
1 parent aac2a8a commit c767d54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,10 @@ void FffGcodeWriter::calculateExtruderOrderPerLayer(const SliceDataStorage& stor
std::vector<ExtruderUse> extruder_order = getUsedExtrudersOnLayerExcludingStartingExtruder(storage, last_extruder, layer_nr);
extruder_order_per_layer_here.push_back(extruder_order);

last_extruder = extruder_order.back().extruder_nr;
if (! extruder_order.empty())
{
last_extruder = extruder_order.back().extruder_nr;
}
}
}

Expand Down

0 comments on commit c767d54

Please sign in to comment.