Skip to content

Commit e09f6e5

Browse files
committed
Revert "Fix SPE-2129"
This reverts commit 8dc1d70.
1 parent 6f7349c commit e09f6e5

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/libslic3r/Format/objparser.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -352,18 +352,10 @@ bool objparse(const char *path, ObjData &data)
352352
return false;
353353

354354
try {
355-
char buf[(65536+1) * 2];
355+
char buf[65536 * 2];
356356
size_t len = 0;
357357
size_t lenPrev = 0;
358358
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-
}
367359
len += lenPrev;
368360
size_t lastLine = 0;
369361
for (size_t i = 0; i < len; ++ i)

0 commit comments

Comments
 (0)