fix malformed file on some stl files (see https://github.com/cnr-isti-vclab/meshlab/issues/732)
This commit is contained in:
parent
4ae9537e75
commit
e292f0cc9b
|
|
@ -150,7 +150,7 @@ static bool IsSTLColored(const char * filename, bool &coloredFlag, bool &magicsM
|
||||||
static bool IsSTLBinary(const char * filename, bool &binaryFlag)
|
static bool IsSTLBinary(const char * filename, bool &binaryFlag)
|
||||||
{
|
{
|
||||||
binaryFlag=false;
|
binaryFlag=false;
|
||||||
FILE *fp = fopen(filename, "r");
|
FILE *fp = fopen(filename, "rb");
|
||||||
/* Find size of file */
|
/* Find size of file */
|
||||||
fseek(fp, 0, SEEK_END);
|
fseek(fp, 0, SEEK_END);
|
||||||
long file_size = ftell(fp);
|
long file_size = ftell(fp);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue