Skip to content

Commit

Permalink
Restrict source range to available range.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-ynput committed Jan 21, 2025
1 parent c718d05 commit bb2d386
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/ayon_core/pipeline/editorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,10 @@ def get_media_range_with_retimes(otio_clip, handle_start, handle_end):

# adjust range if needed
media_in_trimmed = min(media_in_trimmed, min(frame_range))
media_in_trimmed = max(media_in_trimmed, media_in)

media_out_trimmed = max(media_out_trimmed, max(frame_range))
media_out_trimmed = min(media_out_trimmed, media_out)

# adjust available handles if needed
if (media_in_trimmed - media_in) < handle_start:
Expand Down

0 comments on commit bb2d386

Please sign in to comment.