gcode_precision_e parse without tryctach, disabled assert (toverify)

This commit is contained in:
supermerill 2021-10-27 23:11:40 +02:00
parent d981097cc3
commit f44e05091c
2 changed files with 3 additions and 1 deletions

View File

@ -2141,7 +2141,7 @@ void connect_infill(Polylines&& infill_ordered, const std::vector<const Polygon*
EdgeGrid::Grid::ClosestPointResult cp = grid.closest_point(*pt, SCALED_EPSILON);
if (cp.valid()) {
// The infill end point shall lie on the contour.
assert(cp.distance <= 3.);
//assert(cp.distance <= 3.);
intersection_points.emplace_back(cp, (&pl - infill_ordered.data()) * 2 + (pt == &pl.points.front() ? 0 : 1));
}
}

View File

@ -5662,6 +5662,8 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va
value = "All surfaces";
}
if ("gcode_precision_e" == opt_key) {
if (value.find(",") != std::string::npos)
value = value.substr(0, value.find(","));
try {
int val = boost::lexical_cast<int>(value);
if (val > 0)