ENH: refine the multiple-object detects logic while sinking opened

no need to detect the project file

Change-Id: Ia84d94832d16c2a68ecc25ee457d79735873e82a
(cherry picked from commit 39e9f3de907f19d452abf831221656c9a8e1d0e0)
This commit is contained in:
lane.wei 2023-04-07 09:38:31 +08:00 committed by Lane.Wei
parent 90760e0d07
commit 697a45379f

View file

@ -3479,7 +3479,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
// convert_model_if(model, answer_convert_from_imperial_units == wxID_YES); // convert_model_if(model, answer_convert_from_imperial_units == wxID_YES);
} }
if (model.looks_like_multipart_object()) { if (!is_project_file && model.looks_like_multipart_object()) {
MessageDialog msg_dlg(q, _L( MessageDialog msg_dlg(q, _L(
"This file contains several objects positioned at multiple heights.\n" "This file contains several objects positioned at multiple heights.\n"
"Instead of considering them as multiple objects, should \n" "Instead of considering them as multiple objects, should \n"