mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
allow changing bbl machine limits
Signed-off-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
parent
0c2309e3a2
commit
1f13b37f19
1 changed files with 10 additions and 10 deletions
|
@ -3644,16 +3644,16 @@ void TabPrinter::toggle_options()
|
||||||
toggle_option("retract_restart_extra_toolchange", have_multiple_extruders && toolchange_retraction, i);
|
toggle_option("retract_restart_extra_toolchange", have_multiple_extruders && toolchange_retraction, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto gcf = m_config->option<ConfigOptionEnum<GCodeFlavor>>("gcode_flavor")->value;
|
//auto gcf = m_config->option<ConfigOptionEnum<GCodeFlavor>>("gcode_flavor")->value;
|
||||||
if (m_active_page->title() == "Motion ability") {
|
//if (m_active_page->title() == "Motion ability") {
|
||||||
assert(gcf == gcfMarlinLegacy || gcf == gcfMarlinFirmware || gcf == gcfKlipper);
|
// assert(gcf == gcfMarlinLegacy || gcf == gcfMarlinFirmware || gcf == gcfKlipper);
|
||||||
bool silent_mode = m_config->opt_bool("silent_mode");
|
// bool silent_mode = m_config->opt_bool("silent_mode");
|
||||||
int max_field = silent_mode ? 2 : 1;
|
// int max_field = silent_mode ? 2 : 1;
|
||||||
//BBS: limits of BBL printer can't be edited.
|
// //BBS: limits of BBL printer can't be edited.
|
||||||
for (const std::string &opt : Preset::machine_limits_options())
|
// for (const std::string &opt : Preset::machine_limits_options())
|
||||||
for (int i = 0; i < max_field; ++ i)
|
// for (int i = 0; i < max_field; ++ i)
|
||||||
toggle_option(opt, !is_BBL_printer, i);
|
// toggle_option(opt, !is_BBL_printer, i);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabPrinter::update()
|
void TabPrinter::update()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue