Skip to content

Commit

Permalink
Fixed an issue that small_area_infill_compensation_model was initiali…
Browse files Browse the repository at this point in the history
…zed even it's not used.

Fixed #5550
  • Loading branch information
SoftFever committed Jun 4, 2024
1 parent ae07cf9 commit 9a4429f
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 @@ -1975,7 +1975,7 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
} else
m_enable_extrusion_role_markers = false;

if (!print.config().small_area_infill_flow_compensation_model.empty())
if (m_config.small_area_infill_flow_compensation.value && !print.config().small_area_infill_flow_compensation_model.empty())
m_small_area_infill_flow_compensator = make_unique<SmallAreaInfillFlowCompensator>(print.config());

file.write_format("; HEADER_BLOCK_START\n");
Expand Down

0 comments on commit 9a4429f

Please sign in to comment.