From a89df79068f03773fbd7b56bbc3f208783fa5148 Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Tue, 14 May 2024 18:08:26 +0800 Subject: [PATCH] FIX:support mulitiple object to export one stl jira: none Change-Id: I641104d71453bb5b276f969234ef1476259fb09b --- src/slic3r/GUI/Plater.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index ff3279ae5..4c88eb2ce 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -11274,12 +11274,12 @@ void Plater::export_stl(bool extended, bool selection_only, bool multi_stls) //confirm export_with_boolean bool exist_negive_volume = false; bool export_with_boolean = false; - if (selection_only) { + if (selection_only && !selection.is_multiple_full_object()) { const auto obj_idx = selection.get_object_idx(); if (obj_idx == -1 ||selection.is_wipe_tower()) return; - // only support selection single full object and mulitiple full object - if (!selection.is_single_full_object() && !selection.is_multiple_full_object()) + // only support selection single full object + if (!selection.is_single_full_object()) return; const ModelObject *cur_model_object = p->model.objects[obj_idx]; for (auto v : cur_model_object->volumes) { @@ -11288,7 +11288,7 @@ void Plater::export_stl(bool extended, bool selection_only, bool multi_stls) break; } } - } else { + } else {//support mulitiple full object// from file mene to export for (auto cur_model_object : p->model.objects) { for (auto v : cur_model_object->volumes) { if (v->type() == ModelVolumeType::NEGATIVE_VOLUME) {