From 616593d0fb62aefb4f3c9d90f37870a0330b32ad Mon Sep 17 00:00:00 2001 From: Yurii Ti Date: Fri, 10 Jun 2022 11:16:02 +0300 Subject: [PATCH] Fixed a bug where broken stray sequences could appear on PSA export The bug was triggered when: - at least 2 markers were placed; - the right-most marker contained no NLA data. --- io_scene_psk_psa/psa/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_scene_psk_psa/psa/builder.py b/io_scene_psk_psa/psa/builder.py index 15ba022..d52297c 100644 --- a/io_scene_psk_psa/psa/builder.py +++ b/io_scene_psk_psa/psa/builder.py @@ -274,7 +274,7 @@ class PsaBuilder(object): for strip in nla_track.strips: frame_max = max(frame_max, strip.frame_end) - if frame_min == frame_max: + if frame_min > frame_max: continue sequence_frame_ranges[marker_name] = int(frame_min), int(frame_max)