Ver Fonte

- fbx: fix reading of short data tokens in binary files.

Alexander Gessler há 13 anos atrás
pai
commit
8336aa423f
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      code/FBXBinaryTokenizer.cpp

+ 5 - 0
code/FBXBinaryTokenizer.cpp

@@ -174,6 +174,11 @@ void ReadData(const char*& sbegin_out, const char*& send_out, const char* input,
 
 	switch(type)
 	{
+		// 16 bit int
+	case 'Y':
+		cursor += 2;
+		break;
+
 		// 1 bit bool flag (yes/no)
 	case 'C':
 		cursor += 1;