Fix for T59325. Constraint to Fcurve in Motion Tracking was broken

The check was wrongly ported from querying selection to setting selection.

Reviewers: sergey, brecht

Subscribers: brecht, ElDirector

Tags: #motion_tracking

Differential Revision: https://developer.blender.org/D4074
This commit is contained in:
Sebastian Koenig 2018-12-18 17:48:27 +01:00 committed by Sergey Sharybin
parent 12d6c13899
commit 0d979b8e6f
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ class CLIP_OT_constraint_to_fcurve(Operator):
# XXX, should probably use context.selected_editable_objects
# since selected objects can be from a lib or in hidden layer!
for ob in scene.objects:
if ob.select_set(True):
if ob.select_get():
self._bake_object(scene, ob)
return {'FINISHED'}