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
parent 99861f1b6e
commit 8d5dd759ad

View File

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