Skip to content

Commit

Permalink
Fix an issue that bed temperature for other layers are not set properly
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed Sep 24, 2022
1 parent e978388 commit 0a09c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libslic3r/GCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,7 @@ void GCode::get_bed_temperature(const int extruder_id, const bool is_first_layer
{
temps_per_bed.resize((int)BedType::btCount, 0);
for (int bed_type = 0; bed_type < BedType::btCount; bed_type++) {
std::string bed_temp_key = is_first_layer ? get_bed_temp_key((BedType)bed_type) : get_bed_temp_1st_layer_key((BedType)bed_type);
std::string bed_temp_key = is_first_layer ? get_bed_temp_1st_layer_key((BedType)bed_type) : get_bed_temp_key((BedType)bed_type);
const ConfigOptionInts* bed_temp_opt = m_config.option<ConfigOptionInts>(bed_temp_key);

temps_per_bed[bed_type] = bed_temp_opt->get_at(extruder_id);
Expand Down

0 comments on commit 0a09c7d

Please sign in to comment.