mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-24 23:14:33 +08:00
gcode_precision_e parse without tryctach, disabled assert (toverify)
This commit is contained in:
parent
d981097cc3
commit
f44e05091c
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user