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:
authorCampbell Barton <ideasman42@gmail.com>2012-01-02 20:18:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-02 20:18:39 +0400
commit77bdef4d2251a378c178ab571f3ffd3add39ae91 (patch)
treefd449a3d6f0c3de4185ad2f825dfa89b84b2e391 /release/scripts/startup/bl_ui/properties_data_mesh.py
parent2077b7e3b7bafde69490419d565fa5e51f4f4cde (diff)
py scripts - replace bad uses of len(),
checking if the collection is True is faster since it only checks if it has at least one item, rather then going over all items.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_mesh.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_mesh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py
index fa59cc0ac53..710b49618e9 100644
--- a/release/scripts/startup/bl_ui/properties_data_mesh.py
+++ b/release/scripts/startup/bl_ui/properties_data_mesh.py
@@ -158,7 +158,7 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, Panel):
row = layout.row()
row.prop(group, "name")
- if ob.mode == 'EDIT' and len(ob.vertex_groups) > 0:
+ if ob.mode == 'EDIT' and ob.vertex_groups:
row = layout.row()
sub = row.row(align=True)