Fixed the bug where sequences weren't trimmed correctly

This commit is contained in:
Yurii Ti
2022-02-12 15:21:47 +02:00
parent 5e7c2535e2
commit 15b27ac4d6

View File

@@ -27,7 +27,7 @@ def get_nla_strips_in_timeframe(object, frame_min, frame_max) -> List[NlaStrip]:
strips = [] strips = []
for nla_track in object.animation_data.nla_tracks: for nla_track in object.animation_data.nla_tracks:
for strip in nla_track.strips: for strip in nla_track.strips:
if strip.frame_end >= frame_min and strip.frame_start <= frame_max: if strip.frame_start >= frame_min and strip.frame_end <= frame_max:
strips.append(strip) strips.append(strip)
return strips return strips