Skip to content

Commit 0b41f15

Browse files
committed
Revert "Disable small area flow compensation on first layer (Fixes SoftFever#4617) (SoftFever#5838)"
This reverts commit 7707685.
1 parent 7ec1d92 commit 0b41f15

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/libslic3r/GCode.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5611,8 +5611,7 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
56115611
continue;
56125612
path_length += line_length;
56135613
auto dE = e_per_mm * line_length;
5614-
if (!this->on_first_layer() && m_small_area_infill_flow_compensator
5615-
&& m_config.small_area_infill_flow_compensation.value) {
5614+
if (m_small_area_infill_flow_compensator && m_config.small_area_infill_flow_compensation.value) {
56165615
auto oldE = dE;
56175616
dE = m_small_area_infill_flow_compensator->modify_flow(line_length, dE, path.role());
56185617

@@ -5653,8 +5652,7 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
56535652
if (line_length < EPSILON)
56545653
continue;
56555654
auto dE = e_per_mm * line_length;
5656-
if (!this->on_first_layer() && m_small_area_infill_flow_compensator
5657-
&& m_config.small_area_infill_flow_compensation.value) {
5655+
if (m_small_area_infill_flow_compensator && m_config.small_area_infill_flow_compensation.value) {
56585656
auto oldE = dE;
56595657
dE = m_small_area_infill_flow_compensator->modify_flow(line_length, dE, path.role());
56605658

@@ -5677,8 +5675,7 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
56775675
continue;
56785676
const Vec2d center_offset = this->point_to_gcode(arc.center) - this->point_to_gcode(arc.start_point);
56795677
auto dE = e_per_mm * arc_length;
5680-
if (!this->on_first_layer() && m_small_area_infill_flow_compensator
5681-
&& m_config.small_area_infill_flow_compensation.value) {
5678+
if (m_small_area_infill_flow_compensator && m_config.small_area_infill_flow_compensation.value) {
56825679
auto oldE = dE;
56835680
dE = m_small_area_infill_flow_compensator->modify_flow(arc_length, dE, path.role());
56845681

@@ -5816,8 +5813,7 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
58165813
last_set_speed = F;
58175814
}
58185815
auto dE = e_per_mm * line_length;
5819-
if (!this->on_first_layer() && m_small_area_infill_flow_compensator
5820-
&& m_config.small_area_infill_flow_compensation.value) {
5816+
if (m_small_area_infill_flow_compensator && m_config.small_area_infill_flow_compensation.value) {
58215817
auto oldE = dE;
58225818
dE = m_small_area_infill_flow_compensator->modify_flow(line_length, dE, path.role());
58235819

0 commit comments

Comments
 (0)