Skip to content

Commit

Permalink
added condition for disabling initial travel in case of one at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
saumyaj3 committed Mar 12, 2024
1 parent 6a8e116 commit a637b93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ void FffGcodeWriter::writeGCode(SliceDataStorage& storage, TimeKeeper& time_keep
}
const auto extruder_settings = Application::getInstance().current_slice_->scene.extruders[gcode.getExtruderNr()].settings_;
// in case the prime blob is enabled the brim already starts from the closest start position which is blob location
if (! extruder_settings.get<bool>("prime_blob_enable"))
// also in case of one at a time printing the first move of every object shouldn't be start position of machine
if (! extruder_settings.get<bool>("prime_blob_enable") and ! (extruder_settings.get<std::string>("print_sequence")=="one_at_a_time") )
{
// Setting first travel move of the first extruder to the machine start position
Point3LL p(extruder_settings.get<coord_t>("machine_extruder_start_pos_x"), extruder_settings.get<coord_t>("machine_extruder_start_pos_y"), gcode.getPositionZ());
Expand Down

0 comments on commit a637b93

Please sign in to comment.