Bugfix: some binary STL files were not correctly parsed on Windows. #1370 1467
This commit is contained in:
parent
3464e646f7
commit
e62ef35fbf
@ -98,6 +98,9 @@ stl_count_facets(stl_file *stl, char *file)
|
||||
if(chtest[i] > 127)
|
||||
{
|
||||
stl->stats.type = binary;
|
||||
// close and reopen with binary flag (needed on Windows)
|
||||
fclose(stl->fp);
|
||||
stl->fp = fopen(file, "rb");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user