mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-05 16:51:07 -07:00
Updated UI toggles between extrusion rate slope and arc fitting.
This commit is contained in:
parent
e44344f29c
commit
5862c33f46
1 changed files with 4 additions and 5 deletions
|
|
@ -476,11 +476,6 @@ void ConfigManipulation::update_print_fff_config(DynamicPrintConfig* config, con
|
||||||
is_msg_dlg_already_exist = false;
|
is_msg_dlg_already_exist = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config->option<ConfigOptionFloat>("max_volumetric_extrusion_rate_slope")->value > 0)
|
|
||||||
{
|
|
||||||
//toggle_field("enable_arc_fitting",false);
|
|
||||||
config->set_key_value("enable_arc_fitting", new ConfigOptionBool(false));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigManipulation::apply_null_fff_config(DynamicPrintConfig *config, std::vector<std::string> const &keys, std::map<ObjectBase *, ModelConfig *> const &configs)
|
void ConfigManipulation::apply_null_fff_config(DynamicPrintConfig *config, std::vector<std::string> const &keys, std::map<ObjectBase *, ModelConfig *> const &configs)
|
||||||
|
|
@ -514,6 +509,10 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
|
||||||
//SoftFever
|
//SoftFever
|
||||||
auto gcflavor = preset_bundle->printers.get_edited_preset().config.option<ConfigOptionEnum<GCodeFlavor>>("gcode_flavor")->value;
|
auto gcflavor = preset_bundle->printers.get_edited_preset().config.option<ConfigOptionEnum<GCodeFlavor>>("gcode_flavor")->value;
|
||||||
|
|
||||||
|
bool have_volumetric_extrusion_rate_slope = config->option<ConfigOptionFloat>("max_volumetric_extrusion_rate_slope")->value > 0;
|
||||||
|
toggle_field("enable_arc_fitting", !have_volumetric_extrusion_rate_slope);
|
||||||
|
if(have_volumetric_extrusion_rate_slope) config->set_key_value("enable_arc_fitting", new ConfigOptionBool(false));
|
||||||
|
|
||||||
bool have_perimeters = config->opt_int("wall_loops") > 0;
|
bool have_perimeters = config->opt_int("wall_loops") > 0;
|
||||||
for (auto el : { "extra_perimeters_on_overhangs", "ensure_vertical_shell_thickness", "detect_thin_wall", "detect_overhang_wall",
|
for (auto el : { "extra_perimeters_on_overhangs", "ensure_vertical_shell_thickness", "detect_thin_wall", "detect_overhang_wall",
|
||||||
"seam_position", "staggered_inner_seams", "wall_infill_order", "outer_wall_line_width",
|
"seam_position", "staggered_inner_seams", "wall_infill_order", "outer_wall_line_width",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue