From bbe8763d9e7ad673104c2e3db600f86f922eea74 Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Thu, 24 Jan 2013 22:25:44 +0100 Subject: [PATCH] - FBX: workaround to handle files using the 'b' typecode. --- code/FBXBinaryTokenizer.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/FBXBinaryTokenizer.cpp b/code/FBXBinaryTokenizer.cpp index cdd936e19..fc3a3a7b5 100644 --- a/code/FBXBinaryTokenizer.cpp +++ b/code/FBXBinaryTokenizer.cpp @@ -206,12 +206,19 @@ void ReadData(const char*& sbegin_out, const char*& send_out, const char* input, // note: do not write cursor += ReadWord(...cursor) as this would be UB // raw binary data - case 'R': { + case 'R': + { const uint32_t length = ReadWord(input, cursor, end); cursor += length; break; } + case 'b': + // TODO: what is the 'b' type code? Right now we just skip over it / + // take the full range we could get + cursor = end; + break; + // array of * case 'f': case 'd':