mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX: raft contact distance should not trigger warning
Jira: STUDIO-3344 Change-Id: I1d0e7431cad468acaf4830caf002a47c6a33be41 (cherry picked from commit f2a926da614443fdf8631f4412f70fa741a8bf11)
This commit is contained in:
parent
c93f3f0a6b
commit
ecfffca12d
2 changed files with 5 additions and 1 deletions
|
@ -828,6 +828,10 @@ std::vector<GCode::LayerToPrint> GCode::collect_layers_to_print(const PrintObjec
|
|||
|
||||
double extra_gap = (layer_to_print.support_layer ? bottom_cd : top_cd);
|
||||
|
||||
// raft contact distance should not trigger any warning
|
||||
if(last_extrusion_layer && last_extrusion_layer->support_layer)
|
||||
extra_gap = std::max(extra_gap, object.config().raft_contact_distance.value);
|
||||
|
||||
double maximal_print_z = (last_extrusion_layer ? last_extrusion_layer->print_z() : 0.)
|
||||
+ layer_to_print.layer()->height
|
||||
+ std::max(0., extra_gap);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue