From 1f13b37f19d41c34465c2c80243e73f0610e4187 Mon Sep 17 00:00:00 2001 From: SoftFever Date: Thu, 26 Jan 2023 00:30:25 +0800 Subject: [PATCH] allow changing bbl machine limits Signed-off-by: SoftFever --- src/slic3r/GUI/Tab.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 82f064b205..61a30e9bcc 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -3644,16 +3644,16 @@ void TabPrinter::toggle_options() toggle_option("retract_restart_extra_toolchange", have_multiple_extruders && toolchange_retraction, i); } - auto gcf = m_config->option>("gcode_flavor")->value; - if (m_active_page->title() == "Motion ability") { - assert(gcf == gcfMarlinLegacy || gcf == gcfMarlinFirmware || gcf == gcfKlipper); - bool silent_mode = m_config->opt_bool("silent_mode"); - int max_field = silent_mode ? 2 : 1; - //BBS: limits of BBL printer can't be edited. - for (const std::string &opt : Preset::machine_limits_options()) - for (int i = 0; i < max_field; ++ i) - toggle_option(opt, !is_BBL_printer, i); - } + //auto gcf = m_config->option>("gcode_flavor")->value; + //if (m_active_page->title() == "Motion ability") { + // assert(gcf == gcfMarlinLegacy || gcf == gcfMarlinFirmware || gcf == gcfKlipper); + // bool silent_mode = m_config->opt_bool("silent_mode"); + // int max_field = silent_mode ? 2 : 1; + // //BBS: limits of BBL printer can't be edited. + // for (const std::string &opt : Preset::machine_limits_options()) + // for (int i = 0; i < max_field; ++ i) + // toggle_option(opt, !is_BBL_printer, i); + //} } void TabPrinter::update()