mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Update openpype/hosts/resolve/plugins/load/load_clip.py
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
c51ed6409c
commit
e03fe24a07
1 changed files with 3 additions and 0 deletions
|
|
@ -170,6 +170,9 @@ class LoadClip(plugin.TimelineItemLoader):
|
|||
take_mp_item = timeline_item.GetMediaPoolItem()
|
||||
timeline = lib.get_current_timeline()
|
||||
|
||||
# DeleteClips function was added in Resolve 18.5+
|
||||
# by checking None we can detect whether the
|
||||
# function exists in Resolve
|
||||
if timeline.DeleteClips is not None:
|
||||
timeline.DeleteClips([timeline_item])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue