diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index 19d765fcb..75a4ab720 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -5,7 +5,7 @@ bl_info = { "name": "FBX format", "author": "Campbell Barton, Bastien Montagne, Jens Restemeier, @Mysteryem", - "version": (5, 8, 1), + "version": (5, 8, 2), "blender": (3, 6, 0), "location": "File > Import-Export", "description": "FBX IO meshes, UVs, vertex colors, materials, textures, cameras, lamps and actions", diff --git a/io_scene_fbx/data_types.py b/io_scene_fbx/data_types.py index ac7b32a42..328ba3a9c 100644 --- a/io_scene_fbx/data_types.py +++ b/io_scene_fbx/data_types.py @@ -3,7 +3,8 @@ # # SPDX-License-Identifier: GPL-2.0-or-later -BOOL = b'C'[0] +BOOL = b'B'[0] +CHAR = b'C'[0] INT8 = b'Z'[0] INT16 = b'Y'[0] INT32 = b'I'[0] diff --git a/io_scene_fbx/encode_bin.py b/io_scene_fbx/encode_bin.py index fe2bef09d..030f960cb 100644 --- a/io_scene_fbx/encode_bin.py +++ b/io_scene_fbx/encode_bin.py @@ -56,6 +56,14 @@ class FBXElem: self.props_type.append(data_types.BOOL) self.props.append(data) + def add_char(self, data): + assert(isinstance(data, bytes)) + assert(len(data) == 1) + data = pack('