From a42ebbd2406b36035bd495caf977dae3917699ea Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Tue, 7 Sep 2021 21:51:41 -0700 Subject: [PATCH] Fix for accidental check-in of bugged animation code in previous commit --- io_export_psk_psa/psa/builder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/io_export_psk_psa/psa/builder.py b/io_export_psk_psa/psa/builder.py index de24c00..e1846f9 100644 --- a/io_export_psk_psa/psa/builder.py +++ b/io_export_psk_psa/psa/builder.py @@ -70,6 +70,8 @@ class PsaBuilder(object): psa.bones.append(psa_bone) + frame_start_index = 0 + for action in options.actions: if len(action.fcurves) == 0: continue @@ -82,7 +84,7 @@ class PsaBuilder(object): sequence = Psa.Sequence() sequence.name = bytes(action.name, encoding='utf-8') sequence.frame_count = frame_max - frame_min + 1 - sequence.frame_start_index = 0 + sequence.frame_start_index = frame_start_index sequence.fps = context.scene.render.fps frame_count = frame_max - frame_min + 1