mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
general: calculation of duration should not exclude one frame
This commit is contained in:
parent
6156553486
commit
2e5dd57fbf
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ def otio_range_to_frame_range(otio_range):
|
|||
start = _ot.to_frames(
|
||||
otio_range.start_time, otio_range.start_time.rate)
|
||||
end = start + _ot.to_frames(
|
||||
otio_range.duration, otio_range.duration.rate) - 1
|
||||
otio_range.duration, otio_range.duration.rate)
|
||||
return start, end
|
||||
|
||||
|
||||
|
|
@ -254,7 +254,7 @@ def get_media_range_with_retimes(otio_clip, handle_start, handle_end):
|
|||
media_in + source_in + offset_in)
|
||||
media_out_trimmed = (
|
||||
media_in + source_in + (
|
||||
((source_range.duration.value - 1) * abs(
|
||||
(source_range.duration.value * abs(
|
||||
time_scalar)) + offset_out))
|
||||
|
||||
# calculate available handles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue