From d59f345fbb0e77e2fc6618766881c4ecb364c552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= Date: Tue, 15 Dec 2020 14:18:11 +0100 Subject: [PATCH] Fix of #5443 - Assigned input file path for ModelVolume also for AMF archives --- src/libslic3r/Format/AMF.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libslic3r/Format/AMF.cpp b/src/libslic3r/Format/AMF.cpp index a183aeb462..2312005a10 100644 --- a/src/libslic3r/Format/AMF.cpp +++ b/src/libslic3r/Format/AMF.cpp @@ -1020,6 +1020,12 @@ bool load_amf_archive(const char* path, DynamicPrintConfig* config, Model* model #endif // forward compatibility close_zip_reader(&archive); + + for (ModelObject *o : model->objects) + for (ModelVolume *v : o->volumes) + if (v->source.input_file.empty() && (v->type() == ModelVolumeType::MODEL_PART)) + v->source.input_file = path; + return true; }