SPE-1208 - Fix for 3mf from another SW is loaded as a project and not as geometry

This commit is contained in:
enricoturri1966 2022-03-17 14:31:14 +01:00 committed by Lukas Matena
parent f970741dd4
commit b0b65a1f89

View File

@ -5388,7 +5388,7 @@ bool Plater::load_files(const wxArrayString& filenames)
if (!model().objects.empty()) {
if ((boost::algorithm::iends_with(filename, ".3mf") && !is_project_3mf(it->string())) ||
(boost::algorithm::iends_with(filename, ".amf") && !boost::algorithm::iends_with(filename, ".zip.amf")))
load_type = LoadType::OpenProject;
load_type = LoadType::LoadGeometry;
else {
if (wxGetApp().app_config->get("show_drop_project_dialog") == "1") {
ProjectDropDialog dlg(filename);