make sure to exit calib mode when a new model is added

This commit is contained in:
SoftFever 2023-01-03 22:36:57 +08:00
parent 3b99d92515
commit 18153a6095

View file

@ -2895,6 +2895,10 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
if (input_files.empty()) { return std::vector<size_t>(); }
// SoftFever: ugly fix so we can exist pa calib mode
background_process.fff_print()->calib_mode() = Calib_None;
// BBS
int filaments_cnt = config->opt<ConfigOptionStrings>("filament_colour")->values.size();
bool one_by_one = input_files.size() == 1 || printer_technology == ptSLA/* || filaments_cnt <= 1*/;
@ -8796,9 +8800,6 @@ void Plater::add_file()
break;
default:break;
}
// SoftFever: ugly fix so we can exist pa calib mode
p->background_process.fff_print()->calib_mode() = Calib_None;
}
void Plater::update() { p->update(); }