Skip to content

Commit 4ca4673

Browse files
committed
Bug fix. Prevent adding the same clip as child in the Tracker and Object Detection Effects
1 parent 202b2e6 commit 4ca4673

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/windows/views/properties_tableview.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -512,11 +512,14 @@ def contextMenuEvent(self, event):
512512
}]
513513
# Instantiate the timeline
514514
timeline_instance = get_app().window.timeline_sync.timeline
515+
current_effect = timeline_instance.GetClipEffect(clip_id)
516+
515517
# Loop through timeline's clips
516518
for clip_instance in timeline_instance.Clips():
517519
clip_instance_id = clip_instance.Id()
520+
518521
# Avoid attach a clip to it's own object
519-
if (clip_instance_id != clip_id):
522+
if (clip_instance_id != clip_id and (current_effect and clip_instance_id != current_effect.ParentClip().Id())):
520523
# Clip's propertyJSON data
521524
clip_instance_data = Clip.get(id = clip_instance_id).data
522525
# Path to the clip file

0 commit comments

Comments
 (0)