From a30c35d2402aec1408650f718e066526a423952b Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Mon, 9 Sep 2019 11:50:19 +0200 Subject: [PATCH] Follow-up of 9b5edbfa5fdb9eed4fd3e602b75d1ed353778eda -> added comments --- src/libslic3r/Format/objparser.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libslic3r/Format/objparser.cpp b/src/libslic3r/Format/objparser.cpp index 048f440b5..c805667f8 100644 --- a/src/libslic3r/Format/objparser.cpp +++ b/src/libslic3r/Format/objparser.cpp @@ -159,6 +159,11 @@ static bool obj_parseline(const char *line, ObjData &data) line = endptr; EATWS(); } + // the following check is commented out because there may be obj files containing extra data, as those generated by Meshlab, + // see https://dev.prusa3d.com/browse/SPE-1019 for an example, + // and this would lead to a crash because no vertex would be stored +// if (*line != 0) +// return false; data.coordinates.push_back((float)x); data.coordinates.push_back((float)y); data.coordinates.push_back((float)z);