mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX: fix an adapative layer height not work issue
Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
This commit is contained in:
parent
7f1d87f20a
commit
dd1511084e
1 changed files with 8 additions and 5 deletions
|
@ -3591,9 +3591,12 @@ void DynamicPrintConfig::normalize_fdm(int used_filaments)
|
||||||
ConfigOptionBool* alh_opt = this->option<ConfigOptionBool>("adaptive_layer_height");
|
ConfigOptionBool* alh_opt = this->option<ConfigOptionBool>("adaptive_layer_height");
|
||||||
ConfigOptionEnum<PrintSequence>* ps_opt = this->option<ConfigOptionEnum<PrintSequence>>("print_sequence");
|
ConfigOptionEnum<PrintSequence>* ps_opt = this->option<ConfigOptionEnum<PrintSequence>>("print_sequence");
|
||||||
|
|
||||||
ConfigOptionEnum<TimelapseType> *timelapse_opt = this->option<ConfigOptionEnum<TimelapseType>>("timelapse_type");
|
ConfigOptionEnum<TimelapseType>* timelapse_opt = this->option<ConfigOptionEnum<TimelapseType>>("timelapse_type");
|
||||||
if (timelapse_opt && timelapse_opt->value == TimelapseType::tlSmooth) {
|
bool is_smooth_timelapse = timelapse_opt != nullptr && timelapse_opt->value == TimelapseType::tlSmooth;
|
||||||
if (used_filaments == 1 || ps_opt->value == PrintSequence::ByObject)
|
if (is_smooth_timelapse) {
|
||||||
|
ept_opt->value = true;
|
||||||
|
}
|
||||||
|
else if (used_filaments == 1 || ps_opt->value == PrintSequence::ByObject) {
|
||||||
ept_opt->value = false;
|
ept_opt->value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue