mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Add check for MediaPoolItem existence before processing. Improve data handling in timeline items retrieval function.
- Added a check to skip processing if MediaPoolItem doesn't exist. - Enhanced data handling within the timeline items retrieval function. - this is for case some adjustment clips or fusion clips are on timeline
This commit is contained in:
parent
3addd98805
commit
254958f29b
1 changed files with 3 additions and 0 deletions
|
|
@ -409,6 +409,9 @@ def get_current_timeline_items(
|
|||
}
|
||||
# get track item object and its color
|
||||
for clip_index, ti in enumerate(_clips[track_index]):
|
||||
if not ti.GetMediaPoolItem():
|
||||
continue
|
||||
|
||||
data = _data.copy()
|
||||
data["clip"] = {
|
||||
"item": ti,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue