Skip to content

Commit

Permalink
Merge pull request #14 from ynput/bugfix/AY-6245_Resolve-loading-clip…
Browse files Browse the repository at this point in the history
…s-on-timeline-with-position-is-broken

Refactor timing variables check for None values
  • Loading branch information
jakubjezek001 authored Aug 5, 2024
2 parents aaf086b + 73347ba commit 09b97ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/ayon_resolve/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,11 @@ def create_timeline_item(
timeline = timeline or get_current_timeline()

# timing variables
if all([timeline_in, source_start, source_end]):
if all([
timeline_in is not None,
source_start is not None,
source_end is not None
]):
fps = timeline.GetSetting("timelineFrameRate")
duration = source_end - source_start
timecode_in = frames_to_timecode(timeline_in, fps)
Expand Down

0 comments on commit 09b97ae

Please sign in to comment.