From 9125606bc4ca6cbdf472c17abf0996e9f5bf9646 Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Fri, 2 Feb 2024 12:28:45 -0800 Subject: [PATCH] Fix for issue #71 --- io_scene_psk_psa/psa/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_scene_psk_psa/psa/reader.py b/io_scene_psk_psa/psa/reader.py index e60fbb4..08060b9 100644 --- a/io_scene_psk_psa/psa/reader.py +++ b/io_scene_psk_psa/psa/reader.py @@ -11,7 +11,7 @@ def _try_fix_cue4parse_issue_103(sequences) -> bool: # The issue was that the frame_start_index was not being set correctly, and was always being set to the same value # as the frame_count. # This fix will eventually be deprecated as it is only necessary for files exported prior to the fix. - if len(sequences) == 0 and sequences[0].frame_start_index == sequences[0].frame_count: + if len(sequences) > 0 and sequences[0].frame_start_index == sequences[0].frame_count: # Manually set the frame_start_index for each sequence. This assumes that the sequences are in order with # no shared frames between sequences (all exporters that I know of do this, so it's a safe assumption). frame_start_index = 0