Skip to content

Commit

Permalink
the length of brim is correctly calculated in case of no adhesion (#1964
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rburema authored Oct 6, 2023
2 parents 0a52242 + 27e3c92 commit b394e78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3147,7 +3147,6 @@ bool FffGcodeWriter::processSupportInfill(const SliceDataStorage& storage, Layer
}
island_order_optimizer.optimize();

const auto support_brim_line_count = infill_extruder.settings.get<coord_t>("support_brim_line_count");
const auto support_connect_zigzags = infill_extruder.settings.get<bool>("support_connect_zigzags");
const auto support_structure = infill_extruder.settings.get<ESupportStructure>("support_structure");
const Point infill_origin;
Expand Down
4 changes: 2 additions & 2 deletions src/SkirtBrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,8 @@ void SkirtBrim::generateSupportBrim()
}

storage.support_brim.add(brim_line);

const coord_t length = skirt_brim_length + storage.support_brim.polygonLength();
// In case of adhesion::NONE length of support brim is only the length of the brims formed for the support
const coord_t length = (adhesion_type == EPlatformAdhesion::NONE) ? skirt_brim_length : skirt_brim_length + storage.support_brim.polygonLength();
if (skirt_brim_number + 1 >= line_count && length > 0 && length < minimal_length) // Make brim or skirt have more lines when total length is too small.
{
line_count++;
Expand Down

0 comments on commit b394e78

Please sign in to comment.