2D Stabilzier: Don't use len() for checking whether something is enabled or not

This code runs on every redraw and iterates the whole tracks list, which
is something we should avoid.
This commit is contained in:
Sergey Sharybin 2016-08-17 10:33:54 +02:00
parent e392658405
commit de28940b15
1 changed files with 1 additions and 1 deletions

View File

@ -978,7 +978,7 @@ class CLIP_PT_stabilization(CLIP_PT_reconstruction_panel, Panel):
row.prop(stab, "influence_location")
col = layout.column()
col.active = stab.use_stabilize_rotation and 0 < len(stab.rotation_tracks.values())
col.active = stab.use_stabilize_rotation
row = col.row()
row.prop(stab, "influence_rotation")
row = col.row()