Browse Source

Prevent bogus triangle being added when there is whitespace at end of .OBJ file

pull/315/head
Joel Davis 7 years ago
parent
commit
e0c95ede50
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/models.c

+ 1
- 0
src/models.c View File

@ -1637,6 +1637,7 @@ static Mesh LoadOBJ(const char *fileName)
// NOTE: faces MUST be defined as TRIANGLES (3 vertex per face)
while (!feof(objFile))
{
dataType = '\0';
fscanf(objFile, "%c", &dataType);
switch (dataType)

Loading…
Cancel
Save