From e48226dab1b72aca816556663b5413046b7136fc Mon Sep 17 00:00:00 2001 From: Yusarina Date: Sun, 17 Nov 2024 00:50:32 +0000 Subject: [PATCH] Bones now Import but still broken - Bones now fully import - Bones do not import the correct size or rotations it seem though. --- core/import_pmx.py | 241 ++++++++++++++++++++++++++++----------------- 1 file changed, 151 insertions(+), 90 deletions(-) diff --git a/core/import_pmx.py b/core/import_pmx.py index 7d85e5e..764979f 100644 --- a/core/import_pmx.py +++ b/core/import_pmx.py @@ -125,63 +125,113 @@ def read_material(file: BufferedReader, string_build, byte_size): return material_name, material_english_name, diffuse_color, specular_color, specular_strength, ambient_color, flag, edge_color, edge_size, texture_index, sphere_texture_index, sphere_mode, toon_sharing_flag, toon_texture_index, comment, surface_count def read_bone(file: BufferedReader, string_build, byte_size): - bone_name = str(file.read(struct.unpack('