mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-25 15:47:25 +08:00
Don't ask about inches if we load project file (3mf or amf). #5006
This commit is contained in:
parent
acd1782910
commit
2a44fbefd6
@ -2399,18 +2399,18 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
|||||||
wxGetApp().sidebar().update_ui_from_settings();
|
wxGetApp().sidebar().update_ui_from_settings();
|
||||||
};
|
};
|
||||||
|
|
||||||
if (imperial_units)
|
if (!is_project_file) {
|
||||||
convert_from_imperial_units(model);
|
if (imperial_units)
|
||||||
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("The object appears to be saved in inches"), wxICON_WARNING | wxYES | wxNO);
|
|
||||||
if (msg_dlg.ShowModal() == wxID_YES)
|
|
||||||
convert_from_imperial_units(model);
|
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("The object appears to be saved in inches"), 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()) {
|
if (model.looks_like_multipart_object()) {
|
||||||
wxMessageDialog msg_dlg(q, _L(
|
wxMessageDialog msg_dlg(q, _L(
|
||||||
"This file contains several objects positioned at multiple heights.\n"
|
"This file contains several objects positioned at multiple heights.\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user