Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-08-17 11:33:54 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-08-17 11:37:55 +0300
commitde28940b159e71671dc9e426c21704eeeecfd68b (patch)
tree0de64dea150a248909530d809f6a508dcdbb6ce7
parente392658405f3f768ec90e2bbe60b944b0c791bc7 (diff)
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.
-rw-r--r--release/scripts/startup/bl_ui/space_clip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py
index a9db1266bc6..afa9db1f336 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -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()