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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user