2D stabilizer: One more occurrence of len() in the drawing code
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 17 Aug 2016 08:40:34 +0000 (10:40 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 17 Aug 2016 08:40:34 +0000 (10:40 +0200)
release/scripts/startup/bl_ui/space_clip.py

index 5f3b9c768651e4325c17f703f60d9f7b949cb84d..ee6c068dc7140088b099445f4ced4d42aa2c1604 100644 (file)
@@ -973,9 +973,7 @@ class CLIP_PT_stabilization(CLIP_PT_reconstruction_panel, Panel):
             layout.prop(stab, "target_zoom")
 
         layout.separator()
             layout.prop(stab, "target_zoom")
 
         layout.separator()
-        row = layout.row()
-        row.active = 0 < len(stab.tracks.values())
-        row.prop(stab, "influence_location")
+        layout.prop(stab, "influence_location")
 
         col = layout.column()
         col.active = stab.use_stabilize_rotation
 
         col = layout.column()
         col.active = stab.use_stabilize_rotation