From 38bd13463f8103b8188b1532745d1b069774ecd9 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 22 May 2019 15:30:35 +0200 Subject: [PATCH] Fix of MMU file detection not working consistently #2317 If a 3mf or amf file does not contain slicer's profile, and if it looks like a multi-part object, slicer shall ask for loading it as a multi-part object. --- src/slic3r/GUI/Plater.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 1a5c32246..41999d011 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1643,6 +1643,7 @@ std::vector Plater::priv::load_files(const std::vector& input_ const bool type_prusa = std::regex_match(path.string(), pattern_prusa); Slic3r::Model model; + bool is_project_file = type_prusa; try { if (type_3mf || type_zip_amf) { DynamicPrintConfig config; @@ -1666,6 +1667,7 @@ std::vector Plater::priv::load_files(const std::vector& input_ Preset::normalize(config); wxGetApp().preset_bundle->load_config_model(filename.string(), std::move(config)); wxGetApp().load_current_presets(); + is_project_file = true; } wxGetApp().app_config->update_config_dir(path.parent_path().string()); } @@ -1685,7 +1687,7 @@ std::vector Plater::priv::load_files(const std::vector& input_ { // The model should now be initialized - if (!type_3mf && !type_any_amf && !type_prusa) { + if (! is_project_file) { if (model.looks_like_multipart_object()) { wxMessageDialog dlg(q, _(L( "This file contains several objects positioned at multiple heights. "