+ fbx: Parser::IsBinary(), Document::IsBinary()

This commit is contained in:
Alexander Gessler
2012-08-10 21:39:47 +02:00
parent 49cfcf4c07
commit 729e98fef0
4 changed files with 27 additions and 6 deletions

View File

@@ -153,7 +153,9 @@ void FBXImporter::InternReadFile( const std::string& pFile,
TokenList tokens;
try {
bool is_binary = false;
if (!strncmp(begin,"Kaydara FBX Binary",18)) {
is_binary = true;
TokenizeBinary(tokens,begin,contents.size());
}
else {
@@ -162,7 +164,7 @@ void FBXImporter::InternReadFile( const std::string& pFile,
// use this information to construct a very rudimentary
// parse-tree representing the FBX scope structure
Parser parser(tokens);
Parser parser(tokens, is_binary);
// take the raw parse-tree and convert it to a FBX DOM
Document doc(parser,settings);