diff options
-rw-r--r-- | release/scripts/startup/bl_operators/clip.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/clip.py b/release/scripts/startup/bl_operators/clip.py index cd4c1686747..b4795168a19 100644 --- a/release/scripts/startup/bl_operators/clip.py +++ b/release/scripts/startup/bl_operators/clip.py @@ -486,7 +486,10 @@ class CLIP_OT_constraint_to_fcurve(Operator): return {'FINISHED'} # Find start and end frames. - if con.object: + if con.type == 'CAMERA_SOLVER': + # Camera solver constraint is always referring to camera. + tracks = clip.tracking.tracks + elif con.object: tracking_object = clip.tracking.objects.get(con.object, None) if not tracking_object: self.report({'ERROR'}, "Motion Tracking object not found") |