FIX: [STUDIO-2790] OBJ file cannot be opened information

Change-Id: I670c9845e5d8e8ff1b02bbef749a321ee6b81627
This commit is contained in:
maosheng.wei 2023-04-30 11:19:28 +08:00 committed by Lane.Wei
parent 13fae8ddf6
commit a73ff69860
3 changed files with 15 additions and 6 deletions

View file

@ -181,7 +181,7 @@ Model Model::read_from_file(const std::string& input_file, DynamicPrintConfig* c
else if (boost::algorithm::iends_with(input_file, ".stl"))
result = load_stl(input_file.c_str(), &model, nullptr, stlFn);
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, message);
else if (boost::algorithm::iends_with(input_file, ".svg"))
result = load_svg(input_file.c_str(), &model, message);
//BBS: remove the old .amf.xml files