Fix read_STL() in binary_mode for ASCVII on Windows

This commit is contained in:
Maxime Gimeno 2020-12-07 11:50:42 +01:00
parent c76819d0a7
commit 8d9b58d2dd
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ bool read_STL(std::istream& is,
} }
// If the first word is not 'solid', the file must be binary // If the first word is not 'solid', the file must be binary
if(s != "solid" || (word[5] !='\n' && word[5] != ' ')) if(s != "solid" || (word[5] !='\n' && word[5] !='\r' && word[5] != ' '))
{ {
if(!binary) if(!binary)
return false; return false;