#2593 - Fixed loading of .zip.amf files when running from command line
This commit is contained in:
parent
9471c9cd17
commit
28cc595350
@ -99,8 +99,7 @@ Model Model::read_from_file(const std::string &input_file, DynamicPrintConfig *c
|
|||||||
result = load_stl(input_file.c_str(), &model);
|
result = load_stl(input_file.c_str(), &model);
|
||||||
else if (boost::algorithm::iends_with(input_file, ".obj"))
|
else if (boost::algorithm::iends_with(input_file, ".obj"))
|
||||||
result = load_obj(input_file.c_str(), &model);
|
result = load_obj(input_file.c_str(), &model);
|
||||||
else if (!boost::algorithm::iends_with(input_file, ".zip.amf") && (boost::algorithm::iends_with(input_file, ".amf") ||
|
else if (boost::algorithm::iends_with(input_file, ".amf") || boost::algorithm::iends_with(input_file, ".amf.xml"))
|
||||||
boost::algorithm::iends_with(input_file, ".amf.xml")))
|
|
||||||
result = load_amf(input_file.c_str(), config, &model);
|
result = load_amf(input_file.c_str(), config, &model);
|
||||||
else if (boost::algorithm::iends_with(input_file, ".3mf"))
|
else if (boost::algorithm::iends_with(input_file, ".3mf"))
|
||||||
result = load_3mf(input_file.c_str(), config, &model);
|
result = load_3mf(input_file.c_str(), config, &model);
|
||||||
|
Loading…
Reference in New Issue
Block a user