Fix of fan control for raft layers.

Fixes Fan starts at first layer, even though disabled for first layer. 
This is a regression due to cooling refactoring, which cooled
support layers independently from object layers. The bug here was that
all the raft layers were cooled together with the first object layer.
This commit is contained in:
Vojtech Bubnik 2021-12-02 16:40:18 +01:00
parent efbf64fdea
commit 21e5481a58
2 changed files with 11 additions and 5 deletions
src/libslic3r

View file

@ -1480,7 +1480,7 @@ static inline std::tuple<Polygons, Polygons, Polygons, float> detect_overhangs(
overhang_polygons = to_polygons(layer.lslices);
#endif
// Expand for better stability.
contact_polygons = expand(overhang_polygons, scaled<float>(object_config.raft_expansion.value));
contact_polygons = object_config.raft_expansion.value > 0 ? expand(overhang_polygons, scaled<float>(object_config.raft_expansion.value)) : overhang_polygons;
}
else if (! layer.regions().empty())
{