From 15b27ac4d62cc6f87a07f4773af7d888670aff07 Mon Sep 17 00:00:00 2001 From: Yurii Ti Date: Sat, 12 Feb 2022 15:21:47 +0200 Subject: [PATCH] Fixed the bug where sequences weren't trimmed correctly --- io_scene_psk_psa/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_scene_psk_psa/helpers.py b/io_scene_psk_psa/helpers.py index e2af18b..47a2e02 100644 --- a/io_scene_psk_psa/helpers.py +++ b/io_scene_psk_psa/helpers.py @@ -27,7 +27,7 @@ def get_nla_strips_in_timeframe(object, frame_min, frame_max) -> List[NlaStrip]: strips = [] for nla_track in object.animation_data.nla_tracks: 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) return strips