Add tokenization of 'c' type arrays, both compressed and uncompressed.

pull/2326/head
Malcolm Tyrrell 2019-02-05 14:36:49 +00:00
parent 502f59ccbc
commit f9014d7410
1 changed files with 8 additions and 3 deletions

View File

@ -54,6 +54,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <assimp/Exceptional.h> #include <assimp/Exceptional.h>
#include <assimp/ByteSwapper.h> #include <assimp/ByteSwapper.h>
namespace Assimp { namespace Assimp {
namespace FBX { namespace FBX {
@ -276,8 +277,8 @@ void ReadData(const char*& sbegin_out, const char*& send_out, const char* input,
case 'f': case 'f':
case 'd': case 'd':
case 'l': case 'l':
case 'i': { case 'i':
case 'c': {
const uint32_t length = ReadWord(input, cursor, end); const uint32_t length = ReadWord(input, cursor, end);
const uint32_t encoding = ReadWord(input, cursor, end); const uint32_t encoding = ReadWord(input, cursor, end);
@ -298,6 +299,10 @@ void ReadData(const char*& sbegin_out, const char*& send_out, const char* input,
stride = 8; stride = 8;
break; break;
case 'c':
stride = 1;
break;
default: default:
ai_assert(false); ai_assert(false);
}; };