Fix of "Support on build plate only" no longer overridden by support painting (#6863)

This is a regression to a late PrusaSlicer 2.4.0-alpha0 change
	8dfc0422a8
    Faster and hopefully more reliable projection of paint-on support
    blockers and enforcers on a sliced mesh.
This commit is contained in:
Vojtech Bubnik 2021-09-02 16:29:21 +02:00
parent 298825672b
commit d89f01c717

View file

@ -2298,8 +2298,11 @@ void PrintObject::project_and_append_custom_facets(
project_triangles_to_slabs(this->layers(), custom_facets,
(this->trafo_centered() * mv->get_matrix()).cast<float>(),
seam, out);
else
slice_mesh_slabs(custom_facets, zs_from_layers(this->layers()), this->trafo_centered() * mv->get_matrix(), nullptr, &out, [](){});
else {
std::vector<Polygons> projected;
slice_mesh_slabs(custom_facets, zs_from_layers(this->layers()), this->trafo_centered() * mv->get_matrix(), nullptr, &projected, [](){});
append(out, std::move(projected));
}
}
}