mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 15:37:30 -06:00
Fix Line Infill with no anchor (#9768)
* Fix Line Fill with no anchor Co-Authored-By: Rodrigo <162915171+RF47@users.noreply.github.com> * Disable anchor option for Line Infill Co-Authored-By: Rodrigo <162915171+RF47@users.noreply.github.com> Co-Authored-By: Henk <40023052+elektrohenk@users.noreply.github.com> --------- Co-authored-by: Rodrigo <162915171+RF47@users.noreply.github.com> Co-authored-by: Henk <40023052+elektrohenk@users.noreply.github.com>
This commit is contained in:
parent
17586cf0a1
commit
6423d521cd
2 changed files with 11 additions and 8 deletions
|
@ -76,7 +76,7 @@ void FillLine::_fill_surface_single(
|
||||||
size_t n_polylines_out_old = polylines_out.size();
|
size_t n_polylines_out_old = polylines_out.size();
|
||||||
|
|
||||||
// connect lines
|
// connect lines
|
||||||
if (! params.dont_connect() && ! polylines.empty()) { // prevent calling leftmost_point() on empty collections
|
if (! polylines.empty()) { // prevent calling leftmost_point() on empty collections
|
||||||
// offset the expolygon by max(min_spacing/2, extra)
|
// offset the expolygon by max(min_spacing/2, extra)
|
||||||
ExPolygon expolygon_off;
|
ExPolygon expolygon_off;
|
||||||
{
|
{
|
||||||
|
|
|
@ -521,8 +521,11 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
|
||||||
bool have_combined_infill = config->opt_bool("infill_combination") && have_infill;
|
bool have_combined_infill = config->opt_bool("infill_combination") && have_infill;
|
||||||
toggle_line("infill_combination_max_layer_height", have_combined_infill);
|
toggle_line("infill_combination_max_layer_height", have_combined_infill);
|
||||||
|
|
||||||
|
bool infill_anchor = config->opt_enum<InfillPattern>("sparse_infill_pattern") != ipLine;
|
||||||
|
toggle_field("infill_anchor_max",infill_anchor);
|
||||||
|
|
||||||
// Only allow configuration of open anchors if the anchoring is enabled.
|
// Only allow configuration of open anchors if the anchoring is enabled.
|
||||||
bool has_infill_anchors = have_infill && config->option<ConfigOptionFloatOrPercent>("infill_anchor_max")->value > 0;
|
bool has_infill_anchors = have_infill && config->option<ConfigOptionFloatOrPercent>("infill_anchor_max")->value > 0 && infill_anchor;
|
||||||
toggle_field("infill_anchor", has_infill_anchors);
|
toggle_field("infill_anchor", has_infill_anchors);
|
||||||
|
|
||||||
bool has_spiral_vase = config->opt_bool("spiral_mode");
|
bool has_spiral_vase = config->opt_bool("spiral_mode");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue