1
0
mirror of https://github.com/DarklightGames/io_scene_psk_psa.git synced 2025-01-18 23:34:03 +01:00

PSA files now export actions with the frame-rate defined in the scene (previously defaulted to 30fps)

This commit is contained in:
Colin Basnett 2021-09-06 16:18:42 -07:00
parent 58fb7a5dad
commit 313dfcc97c

View File

@ -85,7 +85,7 @@ class PsaBuilder(object):
sequence.name = bytes(action.name, encoding='utf-8')
sequence.frame_count = frame_max - frame_min + 1
sequence.frame_start_index = frame_start_index
sequence.fps = 30 # TODO: fill in later with r
sequence.fps = context.scene.render.fps
frame_count = frame_max - frame_min + 1
@ -93,7 +93,6 @@ class PsaBuilder(object):
context.scene.frame_set(frame)
for bone in pose_bones:
# TODO: is the cast-to-matrix necessary? (guessing no)
key = Psa.Key()
pose_bone_matrix = bone.matrix