From 380130d4263d8d8dd11adf4ac3a252fd4fc881dc Mon Sep 17 00:00:00 2001 From: Nathan Lovato <12694995+NathanLovato@users.noreply.github.com> Date: Sun, 24 Jul 2022 11:35:33 +0200 Subject: [PATCH] fix: jump_to_cut sometimes not working when going left close #466 --- operators/jump_to_cut.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/operators/jump_to_cut.py b/operators/jump_to_cut.py index f45f1cc..db6cea6 100644 --- a/operators/jump_to_cut.py +++ b/operators/jump_to_cut.py @@ -90,7 +90,7 @@ def execute(self, context): frame_target = min(candidates) for f in fcurves: - if not s.name in f.data_path: + if s.name not in f.data_path: continue for k in f.keyframe_points: @@ -111,12 +111,12 @@ def execute(self, context): frame_target = max(candidates) for f in fcurves: - if not s.name in f.data_path: + if s.name not in f.data_path: continue for k in f.keyframe_points: frame = k.co[0] - if frame <= frame_current: + if frame >= frame_current: continue frame_target = max(frame_target, frame)