From 4082105fc80e27fcd31ae59b8082376089f4e35d Mon Sep 17 00:00:00 2001 From: dest1yo Date: Mon, 25 Sep 2023 02:08:07 +0800 Subject: [PATCH 1/3] Fixed incorrect bone position offset when anim type is relative 123 --- import_seanim.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/import_seanim.py b/import_seanim.py index 346ff8e..a7dcc5d 100644 --- a/import_seanim.py +++ b/import_seanim.py @@ -179,7 +179,11 @@ def load_seanim(self, context, progress, filepath=""): if (animType == SEAnim.SEANIM_TYPE.SEANIM_TYPE_ABSOLUTE and bone.parent is not None): bone.matrix.translation = bone.parent.matrix @ offset - else: # Use DELTA / RELATIVE results (ADDITIVE is unknown) + # SEANIM_TYPE_RELATIVE + elif animType == SEAnim.SEANIM_TYPE.SEANIM_TYPE_RELATIVE: + bone.matrix_basis.translation = bone.bone.matrix.inverted() @ offset + # Use DELTA / RELATIVE results (ADDITIVE is unknown) + else: bone.matrix_basis.translation = offset # bone.keyframe_insert("location", index=-1, frame=key.frame, group=tag.name) # nopep8 From f5ff816e43d8f97ef3abea101b6fe17acf3f5a79 Mon Sep 17 00:00:00 2001 From: dest1yo Date: Mon, 25 Sep 2023 03:33:25 +0800 Subject: [PATCH 2/3] Bump Version to 0.4.2 --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index b13d3b0..4ba41ca 100644 --- a/__init__.py +++ b/__init__.py @@ -11,7 +11,7 @@ bl_info = { "name": "SEAnim Support", "author": "SE2Dev", - "version": (0, 4, 1), + "version": (0, 4, 2), "blender": (2, 80, 0), "location": "File > Import", "description": "Import SEAnim", From 19be15f5bdb13fa0a954d5cacdcb0cdaf9f5d8a5 Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 24 Sep 2023 15:37:16 -0400 Subject: [PATCH 3/3] Update __init__.py --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 4ba41ca..33c80ab 100644 --- a/__init__.py +++ b/__init__.py @@ -11,7 +11,7 @@ bl_info = { "name": "SEAnim Support", "author": "SE2Dev", - "version": (0, 4, 2), + "version": (0, 4, 3), "blender": (2, 80, 0), "location": "File > Import", "description": "Import SEAnim",