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.
This commit is contained in:
Yurii Ti
2022-06-10 11:16:02 +03:00
parent edafa1cfd7
commit 616593d0fb

View File

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