Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2020-06-09 13:26:30 +0300
committerJeroen Bakker <jeroen@blender.org>2020-06-11 09:27:22 +0300
commit864f8cbb860dc8b18971dcb9d240a5432994f0c8 (patch)
tree5e76022d822bf4b8e0f98970a0bf4e08e3c80113 /release
parent488bf532076c4d620ad3e9c2f65952994851c483 (diff)
Fix T77448: Camera Solver constraint can't be converted to f-curve
A regression caused by c57f65c088a9 as a fix of another issue. Added an exception for camera solver as that is always pointing to camera object. Since this is a regression which happened in 2.83.0 this change is a candidate to be ported to the 2.83.1.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/clip.py5
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")