Fixed a issue that support_bottom_z_distance was not working as expected.

Fixed #2667
This commit is contained in:
SoftFever 2023-11-10 19:46:01 +08:00
parent edb5676dd1
commit c860680b21
3 changed files with 3 additions and 5 deletions

View file

@ -1206,8 +1206,7 @@ std::vector<GCode::LayerToPrint> GCode::collect_layers_to_print(const PrintObjec
// Allow empty support layers, as the support generator may produce no extrusions for non-empty support regions.
|| (layer_to_print.support_layer /* && layer_to_print.support_layer->has_extrusions() */)) {
double top_cd = object.config().support_top_z_distance;
//double bottom_cd = object.config().support_bottom_z_distance == 0. ? top_cd : object.config().support_bottom_z_distance;
double bottom_cd = top_cd;
double bottom_cd = object.config().support_bottom_z_distance;
double extra_gap = (layer_to_print.support_layer ? bottom_cd : top_cd);