Skip to content

Commit

Permalink
Merge pull request #36 from womendoushihaoyin/infill_issue
Browse files Browse the repository at this point in the history
Fixed the issue where global-level infill settings were ineffective.
  • Loading branch information
womendoushihaoyin authored Dec 3, 2024
2 parents 3b3fd96 + 67bde53 commit 0666cb0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/libslic3r/PrintObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2894,9 +2894,12 @@ static void apply_to_print_region_config(PrintRegionConfig &out, const DynamicPr
if (opt_extruder)
if (int extruder = opt_extruder->value; extruder != 0) {
// Not a default extruder.
out.sparse_infill_filament.value = extruder;
out.solid_infill_filament.value = extruder;
out.wall_filament.value = extruder;
if (out.sparse_infill_filament.value == 0)
out.sparse_infill_filament.value = extruder;
if (out.solid_infill_filament.value == 0)
out.solid_infill_filament.value = extruder;
if (out.wall_filament.value == 0)
out.wall_filament.value = extruder;
}
// 2) Copy the rest of the values.
for (auto it = in.cbegin(); it != in.cend(); ++ it)
Expand Down

0 comments on commit 0666cb0

Please sign in to comment.