Skip to content

Commit

Permalink
Remove limit support_retractions setting from engine.
Browse files Browse the repository at this point in the history
This setting limits support retractions everywhere and does not limit them much in support.

CURA-9800
  • Loading branch information
Joeydelarago committed Jan 3, 2023
1 parent 229cb10 commit df25989
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions src/LayerPlan.cpp
Expand Up @@ -455,21 +455,6 @@ GCodePath& LayerPlan::addTravel(const Point p, const bool force_retract)
}
}
}
if (combPaths.size() == 1)
{
CombPath comb_path = combPaths[0];
if
(
mesh_or_extruder_settings.get<bool>("limit_support_retractions") &&
combPaths.throughAir &&
! comb_path.cross_boundary &&
comb_path.size() == 2 &&
comb_path[0] == *last_planned_position && comb_path[1] == p
)
{ // limit the retractions from support to support, which didn't cross anything
retract = false;
}
}
}

const coord_t maximum_travel_resolution = mesh_or_extruder_settings.get<coord_t>("meshfix_maximum_travel_resolution");
Expand Down
1 change: 0 additions & 1 deletion tests/LayerPlanTest.cpp
Expand Up @@ -110,7 +110,6 @@ class LayerPlanTest : public testing::Test
settings->add("layer_height", "0.1");
settings->add("layer_start_x", "0");
settings->add("layer_start_y", "0");
settings->add("limit_support_retractions", "false");
settings->add("machine_center_is_zero", "false");
settings->add("machine_depth", "1000");
settings->add("machine_extruders_share_nozzle", "false");
Expand Down

0 comments on commit df25989

Please sign in to comment.