Fix of #5443 - Assigned input file path for ModelVolume also for AMF archives

This commit is contained in:
Lukáš Hejl 2020-12-15 14:18:11 +01:00
parent e62f014049
commit d59f345fbb

View file

@ -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;
}