FIX: Remove editing restrictions for unprintable areas

jira: STUDIO-8934
Change-Id: Ied5f1571e9e4f8800eb2dc76eede052c7a656c1d
This commit is contained in:
zhimin.zeng 2025-03-27 16:48:51 +08:00 committed by lane.wei
parent 27f60bd85b
commit 3ed51770b8
2 changed files with 1 additions and 2 deletions

View File

@ -435,7 +435,7 @@ void Field::get_value_by_opt_type(wxString& str, const bool check_value/* = true
wxString y_str = thumbnail.GetNextToken();
if (y_str.ToDouble(&y) && !thumbnail.HasMoreTokens()) {
if (m_opt_id == "bed_exclude_area") {
if (0 <= x && x <= 256 && 0 <= y && y <= 256) {
if (0 <= x && x <= 350 && 0 <= y && y <= 350) {
out_values.push_back(Vec2d(x, y));
continue;
}

View File

@ -4415,7 +4415,6 @@ void TabPrinter::toggle_options()
toggle_option("support_chamber_temp_control",!is_BBL_printer);
toggle_option("use_firmware_retraction", !is_BBL_printer);
toggle_option("support_air_filtration",is_BBL_printer);
toggle_option("bed_exclude_area", !is_BBL_printer);
auto flavor = m_config->option<ConfigOptionEnum<GCodeFlavor>>("gcode_flavor")->value;
bool is_marlin_flavor = flavor == gcfMarlinLegacy || flavor == gcfMarlinFirmware;
// Disable silent mode for non-marlin firmwares.