FIX: multi extruder percent param

jira: NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I98d2f1df419bbf815efa5a2f0f48656a71ef15ab
This commit is contained in:
xun.zhang 2024-07-19 18:26:44 +08:00 committed by lane.wei
parent f122c4f4ef
commit adf208dbb9
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,7 @@ double ConfigBase::get_abs_value_at(const t_config_option_key &opt_key, size_t i
} else {
const ConfigOption *ratio_opt = this->option(opt_def->ratio_over);
assert(ratio_opt->type() == coFloats);
const ConfigOptionFloats *ratio_values = static_cast<const ConfigOptionFloats *>(raw_opt);
const ConfigOptionFloats *ratio_values = static_cast<const ConfigOptionFloats *>(ratio_opt);
return static_cast<const ConfigOptionFloatsOrPercents *>(raw_opt)->get_at(index).get_abs_value(ratio_values->get_at(index));
}
}