mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-06-21 01:30:26 +08:00
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 8dfc0422a878c5e44d4233c6ce522c77a0c3280f Faster and hopefully more reliable projection of paint-on support blockers and enforcers on a sliced mesh. Previous d89f01c71795e324f510939e2cece05b9586291c did not fix it.
This commit is contained in:
parent
cd4155a890
commit
79784d1a2e
@ -2301,7 +2301,14 @@ void PrintObject::project_and_append_custom_facets(
|
||||
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));
|
||||
// Merge these projections with the output, layer by layer.
|
||||
assert(! projected.empty());
|
||||
assert(out.empty() || out.size() == projected.size());
|
||||
if (out.empty())
|
||||
out = std::move(projected);
|
||||
else
|
||||
for (size_t i = 0; i < out.size(); ++ i)
|
||||
append(out[i], std::move(projected[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user