FIX: the option to adjust the first layer flow

Change-Id: Icf0c2686cc78c26724438ddc80d1894ac50ec179
Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
This commit is contained in:
wenjie.guo 2023-07-20 10:28:39 +08:00 committed by Lane.Wei
parent 646cd5a209
commit a321121acc
5 changed files with 10 additions and 8 deletions

View file

@ -3882,8 +3882,8 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
// calculate extrusion length per distance unit
if( path.role() == erTopSolidInfill )
_mm3_per_mm *= m_config.top_solid_infill_flow_ratio.value;
else if (path.role() == erBottomSurface)
_mm3_per_mm *= m_config.bottom_solid_infill_flow_ratio.value;
else if (this->on_first_layer())
_mm3_per_mm *= m_config.initial_layer_flow_ratio.value;
double e_per_mm = m_writer.extruder()->e_per_mm3() * _mm3_per_mm;