diff --git a/src/shapes/obj.cpp b/src/shapes/obj.cpp index c372e93e..6bb2dc3d 100644 --- a/src/shapes/obj.cpp +++ b/src/shapes/obj.cpp @@ -41,6 +41,8 @@ public: /// Fetch a line from the stream, while handling line breaks with backslashes if (!std::getline(is, line)) return false; + if (line == "") + return true; int lastCharacter = line.size()-1; while (lastCharacter >= 0 && (line[lastCharacter] == '\r' ||