1
0
mirror of https://github.com/DarklightGames/io_scene_psk_psa.git synced 2025-02-17 10:08:31 +01:00

Fix for accidental check-in of bugged animation code in previous commit

This commit is contained in:
Colin Basnett 2021-09-07 21:51:41 -07:00
parent 65833b57e8
commit a42ebbd240

View File

@ -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