Skip to content

Commit

Permalink
fix: jump_to_cut sometimes not working when going left
Browse files Browse the repository at this point in the history
close #466
  • Loading branch information
NathanLovato committed Jul 24, 2022
1 parent fc79cd7 commit 380130d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions operators/jump_to_cut.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)

Expand Down

0 comments on commit 380130d

Please sign in to comment.