mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-08-05 00:38:01 +02:00
Take 2 on making MSVC happy.
This commit is contained in:
parent
fd63cb7ed1
commit
2687a7b038
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include <QBuffer>
|
||||
#include <QIODevice>
|
||||
#include <locale> // This is the documented header for isdigit on MSVC. It should be unnecessary but safe on other platforms
|
||||
#include <ctype.h> // .obj files are not locale-specific. The C/ASCII charset applies.
|
||||
|
||||
#include "FBXReader.h"
|
||||
#include "OBJReader.h"
|
||||
|
@ -243,7 +243,7 @@ bool OBJReader::parseOBJGroup(OBJTokenizer& tokenizer, const QVariantHash& mappi
|
|||
// vertex-index/texture-index
|
||||
// vertex-index/texture-index/surface-normal-index
|
||||
QByteArray token = tokenizer.getDatum();
|
||||
if (!std::isdigit(token[0])) { // Tokenizer treats line endings as whitespace. Non-digit indicates done;
|
||||
if (!isdigit(token[0])) { // Tokenizer treats line endings as whitespace. Non-digit indicates done;
|
||||
tokenizer.pushBackToken(OBJTokenizer::DATUM_TOKEN);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue