diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-05-06 17:13:50 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-05-06 17:13:50 +0300 |
commit | 43f601f1c4f4e1c57bea5b91c1c0f826f3b012ff (patch) | |
tree | 03f4746ffbb5b620638f5e3c5b028c30f93d4f51 | |
parent | 668dd146f6475f97339aff3d80d019af4d816ee1 (diff) | |
parent | c57f65c088a9daf2962c8f0e1f8c3ebfcf0acbea (diff) |
Merge branch 'blender-v2.83-release'
-rw-r--r-- | release/scripts/startup/bl_operators/clip.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/clip.py b/release/scripts/startup/bl_operators/clip.py index 15ff08e0719..cd4c1686747 100644 --- a/release/scripts/startup/bl_operators/clip.py +++ b/release/scripts/startup/bl_operators/clip.py @@ -486,7 +486,18 @@ class CLIP_OT_constraint_to_fcurve(Operator): return {'FINISHED'} # Find start and end frames. - for track in clip.tracking.tracks: + if con.object: + tracking_object = clip.tracking.objects.get(con.object, None) + if not tracking_object: + self.report({'ERROR'}, "Motion Tracking object not found") + + return {'CANCELLED'} + + tracks = tracking_object.tracks + else: + tracks = clip.tracking.tracks + + for track in tracks: if sfra is None: sfra = track.markers[0].frame else: |