#1073 fix Infill doesn´t switch to Rectilinear at 100%

from bad merge
This commit is contained in:
remi durand 2021-04-11 18:17:20 +02:00
parent f8b249b1c8
commit d9ad9371aa

View File

@ -338,7 +338,12 @@ void ConfigManipulation::update_print_fff_config(DynamicPrintConfig* config, con
if (!is_global_config || answer == wxID_YES) {
new_conf.set_key_value("fill_pattern", new ConfigOptionEnum<InfillPattern>(ipRectilinear));
fill_density = 100;
}
} else
fill_density = wxGetApp().preset_bundle->prints.get_selected_preset().config.option<ConfigOptionPercent>("fill_density")->value;
new_conf.set_key_value("fill_density", new ConfigOptionPercent(fill_density));
apply(config, &new_conf);
if (cb_value_change)
cb_value_change("fill_density", fill_density);
}
}
}