mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Merge pull request #6126 from jrsndl/bugfix/resolve_fix_loader_slate_6124
Resolve Clip Load - Slate support
This commit is contained in:
commit
4e044ea0b3
1 changed files with 5 additions and 1 deletions
|
|
@ -409,6 +409,10 @@ class ClipLoader:
|
|||
source_in = int(_clip_property("Start"))
|
||||
source_out = int(_clip_property("End"))
|
||||
source_duration = int(_clip_property("Frames"))
|
||||
# Trim clip start if slate is present
|
||||
if "slate" in self.data["versionData"]["families"]:
|
||||
source_in += 1
|
||||
source_duration = source_out - source_in + 1
|
||||
|
||||
if not self.with_handles:
|
||||
# Load file without the handles of the source media
|
||||
|
|
@ -435,7 +439,7 @@ class ClipLoader:
|
|||
handle_start = version_data.get("handleStart", 0)
|
||||
handle_end = version_data.get("handleEnd", 0)
|
||||
frame_start_handle = frame_start - handle_start
|
||||
frame_end_handle = frame_start + handle_end
|
||||
frame_end_handle = frame_end + handle_end
|
||||
database_frame_duration = int(
|
||||
frame_end_handle - frame_start_handle + 1
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue