Skip to content

Commit

Permalink
allow multi-stl import also with single extruder printer
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Feb 24, 2024
1 parent ca8c43c commit 4faa899
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/slic3r/GUI/Plater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2416,7 +2416,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_

auto *nozzle_dmrs = config->opt<ConfigOptionFloats>("nozzle_diameter");

bool one_by_one = input_files.size() == 1 || printer_technology == ptSLA || nozzle_dmrs->values.size() <= 1;
bool one_by_one = input_files.size() == 1 || printer_technology == ptSLA; // || nozzle_dmrs->values.size() <= 1; // removed by bb (toa llow multi-import on a single extruder printer.
if (! one_by_one) {
for (const auto &path : input_files) {
if (std::regex_match(path.string(), pattern_bundle)) {
Expand Down Expand Up @@ -2729,10 +2729,11 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_

if (new_model != nullptr && new_model->objects.size() > 1) {
//wxMessageDialog msg_dlg(q, _L(
MessageDialog msg_dlg(q, _L(
MessageDialog msg_dlg(q, nozzle_dmrs->values.size() > 1 ? _L(
"Multiple objects were loaded for a multi-material printer.\n"
"Instead of considering them as multiple objects, should I consider\n"
"these files to represent a single object having multiple parts?") + "\n",
"these files to represent a single object having multiple parts?") + "\n":
_L("Load these files as a single object with multiple parts?\n"),
_L("Multi-part object detected"), wxICON_WARNING | wxYES | wxNO);
if (msg_dlg.ShowModal() == wxID_YES) {
new_model->convert_multipart_object(nozzle_dmrs->values.size());
Expand Down

0 comments on commit 4faa899

Please sign in to comment.