mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
merging if conditions for handles exclusion
also updating docstring
This commit is contained in:
parent
88a1f97ad5
commit
b1ea0b099d
2 changed files with 7 additions and 7 deletions
|
|
@ -258,9 +258,10 @@ def create_timeline_item(
|
|||
|
||||
Args:
|
||||
media_pool_item (resolve.MediaPoolItem): resolve's object
|
||||
source_start (int): media source input frame (sequence frame)
|
||||
source_end (int): media source output frame (sequence frame)
|
||||
timeline_in (int): timeline input frame (sequence frame)
|
||||
timeline (resolve.Timeline)[optional]: resolve's object
|
||||
source_start (int)[optional]: media source input frame (sequence frame)
|
||||
source_end (int)[optional]: media source output frame (sequence frame)
|
||||
|
||||
Returns:
|
||||
object: resolve.TimelineItem
|
||||
|
|
|
|||
|
|
@ -418,12 +418,11 @@ class ClipLoader:
|
|||
source_in = int(_clip_property("Start"))
|
||||
source_out = int(_clip_property("End"))
|
||||
|
||||
if _clip_property("Type") == "Video":
|
||||
source_in += handle_start
|
||||
source_out -= handle_end
|
||||
|
||||
# include handles
|
||||
if not self.with_handles:
|
||||
if (
|
||||
not self.with_handles
|
||||
or _clip_property("Type") == "Video"
|
||||
):
|
||||
source_in += handle_start
|
||||
source_out -= handle_end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue