We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f7349c commit e09f6e5Copy full SHA for e09f6e5
src/libslic3r/Format/objparser.cpp
@@ -352,18 +352,10 @@ bool objparse(const char *path, ObjData &data)
352
return false;
353
354
try {
355
- char buf[(65536+1) * 2];
+ char buf[65536 * 2];
356
size_t len = 0;
357
size_t lenPrev = 0;
358
while ((len = ::fread(buf + lenPrev, 1, 65536, pFile)) != 0) {
359
- if (std::feof(pFile)) {
360
- // Fix issue with missing last trinagle in obj file:
361
- // https://github.com/prusa3d/PrusaSlicer/issues/12157
362
- // algorithm expect line endings after last face
363
- // but file format support it
364
- buf[len] = '\n';
365
- ++len;
366
- }
367
len += lenPrev;
368
size_t lastLine = 0;
369
for (size_t i = 0; i < len; ++ i)
0 commit comments