Skip to content

Commit

Permalink
Cura 11553 initial scarring (#2031)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo authored Feb 23, 2024
2 parents aae4787 + 404c1c6 commit 8df7de3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ void FffGcodeWriter::writeGCode(SliceDataStorage& storage, TimeKeeper& time_keep
mesh_order_per_extruder.push_back(calculateMeshOrder(storage, extruder_nr));
}
}

// Setting first travel move of the first extruder to the machine start position
const auto extruder_settings = Application::getInstance().current_slice_->scene.extruders[gcode.getExtruderNr()].settings_;
Point3LL p(extruder_settings.get<coord_t>("machine_extruder_start_pos_x"), extruder_settings.get<coord_t>("machine_extruder_start_pos_y"), gcode.getPositionZ());
gcode.writeTravel(p, extruder_settings.get<Velocity>("speed_travel"));

calculateExtruderOrderPerLayer(storage);
calculatePrimeLayerPerExtruder(storage);

Expand Down

0 comments on commit 8df7de3

Please sign in to comment.