Bugfix: some binary STL files were not correctly parsed on Windows. #1370 1467

This commit is contained in:
Alessandro Ranellucci 2013-11-12 16:58:26 +01:00
parent 3464e646f7
commit e62ef35fbf

View File

@ -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;
}
}