Exported PSA Sequence data has incorrect FirstRawFrame value
cmbasnett opened this issue · 0 comments
Hi there, I maintain a Blender addon for importing PSK and PSA files.
Someone reported a bug (DarklightGames/io_scene_psk_psa#46) that they were unable to import PSA files that were exported out of FModel (which uses CUE4Parse).
I believe I tracked down the issue.
Here, the FirstRawFrame
is being assigned the same value as the NumRawFrames
. This is incorrect, as the FirstRawFrame
is meant to be the frame index that the animation begins at.
It is possible to work around this by just calculating the correct starting frame after reading in all the sequence data, but it would be better to have this fixed since I believe any PSA files exported out of CUE4Parse would be incompatible with older versions of the Unreal engine.
For reference, you can see how I handle calculating the FirstRawFrame
value in my addon:
https://github.com/DarklightGames/io_scene_psk_psa/blob/master/io_scene_psk_psa/psa/builder.py#L170C31-L170C31
https://github.com/DarklightGames/io_scene_psk_psa/blob/master/io_scene_psk_psa/psa/builder.py#L197