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)