ソースを参照

- FBX: workaround to handle files using the 'b' typecode.

Alexander Gessler 12 年 前
コミット
bbe8763d9e
1 ファイル変更8 行追加1 行削除
  1. 8 1
      code/FBXBinaryTokenizer.cpp

+ 8 - 1
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
 		// note: do not write cursor += ReadWord(...cursor) as this would be UB
 
 
 		// raw binary data
 		// raw binary data
-	case 'R':	{
+	case 'R':	
+	{
 		const uint32_t length = ReadWord(input, cursor, end);
 		const uint32_t length = ReadWord(input, cursor, end);
 		cursor += length;
 		cursor += length;
 		break;
 		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 *
 		// array of *
 	case 'f':
 	case 'f':
 	case 'd':
 	case 'd':