Skip to content

Commit

Permalink
the length of brim is correctly calculated in case of no adhesion
Browse files Browse the repository at this point in the history
  • Loading branch information
saumyaj3 committed Oct 5, 2023
1 parent a8cc7b7 commit d24323d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3050,7 +3050,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
2 changes: 1 addition & 1 deletion src/SkirtBrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ void SkirtBrim::generateSupportBrim()

storage.support_brim.add(brim_line);

const coord_t length = skirt_brim_length + storage.support_brim.polygonLength();
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 d24323d

Please sign in to comment.