Skip to content

Commit

Permalink
Applied clang-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo authored and github-actions[bot] committed Aug 28, 2024
1 parent d1eb844 commit aa7cbbd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1827,8 +1827,7 @@ void FffGcodeWriter::addMeshPartToGCode(
added_something = added_something | processSkin(storage, gcode_layer, mesh, extruder_nr, mesh_config, part);

// After a layer part, make sure the nozzle is inside the comb boundary, so we do not retract on the perimeter.
if (added_something
&& (! mesh_group_settings.get<bool>("magic_spiralize") || gcode_layer.getLayerNr() < LayerIndex(mesh.settings.get<size_t>("initial_bottom_layers"))))
if (added_something && (! mesh_group_settings.get<bool>("magic_spiralize") || gcode_layer.getLayerNr() < LayerIndex(mesh.settings.get<size_t>("initial_bottom_layers"))))
{
coord_t innermost_wall_line_width = mesh.settings.get<coord_t>((mesh.settings.get<size_t>("wall_line_count") > 1) ? "wall_line_width_x" : "wall_line_width_0");
if (gcode_layer.getLayerNr() == 0)
Expand Down Expand Up @@ -2931,8 +2930,7 @@ bool FffGcodeWriter::processInsets(
{
const size_t initial_bottom_layers = mesh.settings.get<size_t>("initial_bottom_layers");
const auto layer_nr = gcode_layer.getLayerNr();
if ((layer_nr < LayerIndex(initial_bottom_layers)
&& part.wall_toolpaths.empty()) // The bottom layers in spiralize mode are generated using the variable width paths
if ((layer_nr < LayerIndex(initial_bottom_layers) && part.wall_toolpaths.empty()) // The bottom layers in spiralize mode are generated using the variable width paths
|| (layer_nr >= LayerIndex(initial_bottom_layers) && part.spiral_wall.empty())) // The rest of the layers in spiralize mode are using the spiral wall
{
// nothing to do
Expand All @@ -2942,8 +2940,7 @@ bool FffGcodeWriter::processInsets(
{
spiralize = true;
}
if (spiralize && gcode_layer.getLayerNr() == LayerIndex(initial_bottom_layers)
&& extruder_nr == mesh.settings.get<ExtruderTrain&>("wall_0_extruder_nr").extruder_nr_)
if (spiralize && gcode_layer.getLayerNr() == LayerIndex(initial_bottom_layers) && extruder_nr == mesh.settings.get<ExtruderTrain&>("wall_0_extruder_nr").extruder_nr_)
{ // on the last normal layer first make the outer wall normally and then start a second outer wall from the same hight, but gradually moving upward
added_something = true;
gcode_layer.setIsInside(true); // going to print stuff inside print object
Expand Down

0 comments on commit aa7cbbd

Please sign in to comment.