Determining the last frame when using timeline markers no longer considers muted NLA tracks

This commit is contained in:
Colin Basnett
2022-04-13 22:52:55 -07:00
parent d81f8286a1
commit 99da7e67c0

View File

@@ -244,6 +244,8 @@ class PsaBuilder(object):
# There is no next marker. # There is no next marker.
# Find the final frame of all the NLA strips and use that as the last frame of this sequence. # Find the final frame of all the NLA strips and use that as the last frame of this sequence.
for nla_track in object.animation_data.nla_tracks: for nla_track in object.animation_data.nla_tracks:
if nla_track.mute:
continue
for strip in nla_track.strips: for strip in nla_track.strips:
frame_max = max(frame_max, strip.frame_end) frame_max = max(frame_max, strip.frame_end)