ENH: privide setting option of exclude_area

As title. User can delete the value to enable 256x256 printable
size

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ia10454b7a7a1b28c04d8d41df9f3251875f6e74e
This commit is contained in:
salt.wei 2022-07-25 18:32:05 +08:00 committed by Lane.Wei
parent f9dce93a52
commit 5a2669dcc2
7 changed files with 30 additions and 11 deletions

View file

@ -197,7 +197,7 @@ void change_opt_value(DynamicPrintConfig& config, const t_config_option_key& opt
}
break;
case coPoints:{
if (opt_key == "printable_area") {
if (opt_key == "printable_area" || opt_key == "bed_exclude_area") {
config.option<ConfigOptionPoints>(opt_key)->values = boost::any_cast<std::vector<Vec2d>>(value);
break;
}