diff --git a/core/import_pmx.py b/core/import_pmx.py index bfe57be..67a6ae2 100644 --- a/core/import_pmx.py +++ b/core/import_pmx.py @@ -2,6 +2,13 @@ import bpy import struct import traceback +from mathutils import Matrix, Vector + +def replace_char(string, index, character): + temp = list(string) + temp[index] = character + return "".join(temp) + def read_pmx_header(file): # Read PMX header information magic = file.read(4) @@ -26,28 +33,73 @@ def read_pmx_header(file): model_english_name = str(file.read(struct.unpack('