diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-28 10:20:32 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-28 10:20:32 +0400 |
commit | c15da3a41249ed26de82dccf49bd47ae597673e3 (patch) | |
tree | 5b46a51a65b089df6bc4a4cb8dfc35de3e32b521 /io_scene_fbx | |
parent | b4781416492eca8e12cd15a09af14e78c01c76b3 (diff) |
found another data type - byte arrays. add support.
Diffstat (limited to 'io_scene_fbx')
-rw-r--r-- | io_scene_fbx/parse_fbx.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/io_scene_fbx/parse_fbx.py b/io_scene_fbx/parse_fbx.py index 6288d411..f634e52e 100644 --- a/io_scene_fbx/parse_fbx.py +++ b/io_scene_fbx/parse_fbx.py @@ -91,7 +91,8 @@ read_data_dict = { b'i'[0]: lambda read: unpack_array(read, 'i', 4, True), # array (int) b'd'[0]: lambda read: unpack_array(read, 'd', 8, False), # array (double) b'l'[0]: lambda read: unpack_array(read, 'q', 8, True), # array (long) - b'b'[0]: lambda read: unpack_array(read, 'b', 1, False), # bool array + b'b'[0]: lambda read: unpack_array(read, 'b', 1, False), # array (bool) + b'c'[0]: lambda read: unpack_array(read, 'B', 1, False), # array (ubyte) } @@ -184,4 +185,5 @@ INT32_ARRAY = b'i'[0], FLOAT64_ARRAY = b'd'[0], INT64_ARRAY = b'l'[0], BOOL_ARRAY = b'b'[0], +BYTE_ARRAY = b'c'[0], )) |