diff --git a/io_scene_fbx/data_types.py b/io_scene_fbx/data_types.py index 38d3fec4d..cf612b8e6 100644 --- a/io_scene_fbx/data_types.py +++ b/io_scene_fbx/data_types.py @@ -4,6 +4,7 @@ # Script copyright (C) 2013 Blender Foundation BOOL = b'C'[0] +INT8 = b'Z'[0] INT16 = b'Y'[0] INT32 = b'I'[0] INT64 = b'L'[0] diff --git a/io_scene_fbx/encode_bin.py b/io_scene_fbx/encode_bin.py index 8433134a7..1666c0e43 100644 --- a/io_scene_fbx/encode_bin.py +++ b/io_scene_fbx/encode_bin.py @@ -56,6 +56,13 @@ class FBXElem: self.props_type.append(data_types.BOOL) self.props.append(data) + def add_int8(self, data): + assert(isinstance(data, int)) + data = pack('