From dd1511084ef91f8e438858067202bf56a32fe119 Mon Sep 17 00:00:00 2001 From: "yifan.wu" Date: Sun, 11 Sep 2022 13:57:01 +0800 Subject: [PATCH] FIX: fix an adapative layer height not work issue Signed-off-by: yifan.wu --- src/libslic3r/PrintConfig.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index bf6c341ee..3958b36db 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -3590,11 +3590,14 @@ void DynamicPrintConfig::normalize_fdm(int used_filaments) ConfigOptionBool* islh_opt = this->option("independent_support_layer_height", true); ConfigOptionBool* alh_opt = this->option("adaptive_layer_height"); ConfigOptionEnum* ps_opt = this->option>("print_sequence"); - - ConfigOptionEnum *timelapse_opt = this->option>("timelapse_type"); - if (timelapse_opt && timelapse_opt->value == TimelapseType::tlSmooth) { - if (used_filaments == 1 || ps_opt->value == PrintSequence::ByObject) - ept_opt->value = false; + + ConfigOptionEnum* timelapse_opt = this->option>("timelapse_type"); + bool is_smooth_timelapse = timelapse_opt != nullptr && timelapse_opt->value == TimelapseType::tlSmooth; + if (is_smooth_timelapse) { + ept_opt->value = true; + } + else if (used_filaments == 1 || ps_opt->value == PrintSequence::ByObject) { + ept_opt->value = false; } if (ept_opt->value) {