fix [#30068] Link Empty to Track python error
authorCampbell Barton <ideasman42@gmail.com>
Sat, 4 Feb 2012 11:12:18 +0000 (11:12 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 4 Feb 2012 11:12:18 +0000 (11:12 +0000)
incorrect attribute used (likely code added since last release).

release/scripts/startup/bl_operators/clip.py

index 77c28b1bc1191efbe7b44cb1887d20b346eeaa73..aa4f3a35e6d7452a93a9f942213b34fffab56b56 100644 (file)
@@ -69,7 +69,7 @@ def CLIP_camera_for_clip(context, clip):
         if ob.type == 'CAMERA':
             for con in ob.constraints:
                 if con.type == 'CAMERA_SOLVER':
-                    cur_clip = scene.clip if con.use_active_clip else con.clip
+                    cur_clip = scene.active_clip if con.use_active_clip else con.clip
 
                     if cur_clip == clip:
                         return ob
@@ -834,6 +834,7 @@ class CLIP_OT_setup_tracking_scene(Operator):
 
         return {'FINISHED'}
 
+
 class CLIP_OT_track_settings_as_default(Operator):
     """Copy tracking settings from active track to default settings"""