stop bothering me with deprecated inches!

This commit is contained in:
supermerill 2020-11-10 13:08:41 +01:00
parent bb2a4c13fb
commit c3a11593ee

View File

@ -2351,14 +2351,14 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
if (imperial_units)
convert_from_imperial_units(model);
else if (model.looks_like_imperial_units()) {
wxMessageDialog msg_dlg(q, format_wxstr(_L(
"Some object(s) in file %s looks like saved in inches.\n"
"Should I consider them as a saved in inches and convert them?"), from_path(filename)) + "\n",
_L("Saved in inches object detected"), wxICON_WARNING | wxYES | wxNO);
if (msg_dlg.ShowModal() == wxID_YES)
convert_from_imperial_units(model);
}
// else if (model.looks_like_imperial_units()) {
// wxMessageDialog msg_dlg(q, format_wxstr(_L(
// "Some object(s) in file %s looks like saved in inches.\n"
// "Should I consider them as a saved in inches and convert them?"), from_path(filename)) + "\n",
// _L("Saved in inches object detected"), wxICON_WARNING | wxYES | wxNO);
// if (msg_dlg.ShowModal() == wxID_YES)
// convert_from_imperial_units(model);
//}
if (! is_project_file) {
if (model.looks_like_multipart_object()) {