Skip to content

Commit

Permalink
[CURA-12043] When the mesh is known, use its center-point, instead of…
Browse files Browse the repository at this point in the history
… that of the scene. (#2126)
  • Loading branch information
nallath authored Aug 1, 2024
2 parents 15616b0 + b1adb55 commit b79d52e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2309,7 +2309,7 @@ bool FffGcodeWriter::processSingleLayerInfill(
extruder_nr,
z_seam_config,
tool_paths,
storage.getModelBoundingBox().flatten().getMiddle());
mesh.bounding_box.flatten().getMiddle());
added_something |= wall_orderer.addToLayer();
}
}
Expand Down Expand Up @@ -2752,7 +2752,7 @@ bool FffGcodeWriter::processInsets(
mesh.settings.get<ExtruderTrain&>("wall_x_extruder_nr").extruder_nr_,
z_seam_config,
part.wall_toolpaths,
storage.getModelBoundingBox().flatten().getMiddle());
mesh.bounding_box.flatten().getMiddle());
added_something |= wall_orderer.addToLayer();
}
return added_something;
Expand Down Expand Up @@ -3178,7 +3178,7 @@ void FffGcodeWriter::processSkinPrintFeature(
skin_extruder_nr,
z_seam_config,
skin_paths,
storage.getModelBoundingBox().flatten().getMiddle());
mesh.bounding_box.flatten().getMiddle());
added_something |= wall_orderer.addToLayer();
}
}
Expand Down

0 comments on commit b79d52e

Please sign in to comment.