#185 fix looping perimeters when a loop has mixed role.

note: that line takes me hours to find it.
This commit is contained in:
supermerill 2020-04-18 19:58:44 +02:00
parent 525eed0a5f
commit 0b861f0c51

View File

@ -1056,8 +1056,8 @@ PerimeterGenerator::_extrude_and_cut_loop(const PerimeterGeneratorLoop &loop, co
// reapply the nearest point search for starting point
// We allow polyline reversal because Clipper may have randomly
// reversed polylines during clipping.
if(!paths.empty())
paths = (ExtrusionPaths)ExtrusionEntityCollection(paths).chained_path_from(paths.front().first_point());
if (!paths.empty())
chain_and_reorder_extrusion_paths(paths, &paths.front().first_point());
if (direction.length() > 0) {