diff --git a/blender_asset_tracer/blendfile/dna.py b/blender_asset_tracer/blendfile/dna.py index 12dff21..e4a536e 100644 --- a/blender_asset_tracer/blendfile/dna.py +++ b/blender_asset_tracer/blendfile/dna.py @@ -260,6 +260,7 @@ class Struct: b"short": endian.read_short, b"uint64_t": endian.read_ulong, b"float": endian.read_float, + b"int8_t": endian.read_int8, } try: simple_reader = simple_readers[dna_type.dna_type_id] diff --git a/blender_asset_tracer/blendfile/dna_io.py b/blender_asset_tracer/blendfile/dna_io.py index ac46794..918f2e4 100644 --- a/blender_asset_tracer/blendfile/dna_io.py +++ b/blender_asset_tracer/blendfile/dna_io.py @@ -28,6 +28,7 @@ import typing class EndianIO: # TODO(Sybren): note as UCHAR: struct.Struct = None and move actual structs to LittleEndianTypes UCHAR = struct.Struct(b"B") + SINT8 = struct.Struct(b">b") USHORT = struct.Struct(b">H") USHORT2 = struct.Struct(b">HH") # two shorts in a row SSHORT = struct.Struct(b">h")