From 6710b249b11bd01c581736fe88d466d8b0d4b25b Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Wed, 25 Jul 2018 23:41:27 -0500 Subject: [PATCH] Also flatten the infill list before iterating over it. --- xs/src/libslic3r/PrintGCode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/src/libslic3r/PrintGCode.cpp b/xs/src/libslic3r/PrintGCode.cpp index f3f335a94..efbf6208e 100644 --- a/xs/src/libslic3r/PrintGCode.cpp +++ b/xs/src/libslic3r/PrintGCode.cpp @@ -547,7 +547,7 @@ PrintGCode::process_layer(size_t idx, const Layer* layer, const Points& copies) // the ExtrusionPath objects of a certain infill "group" (also called "surface" // throughout the code). We can redefine the order of such Collections but we have to // do each one completely at once. - for(auto* fill : const_cast(layerm)->fills) { + for(auto* fill : layerm->fills.flatten().entities) { if(fill->length() == 0) continue; // this shouldn't happen but first_point() would fail auto extruder_id = fill->is_solid_infill()