diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-30 03:27:54 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-30 03:27:54 +0300 |
commit | be8270bc76ef873adb646b97abcf925beae90137 (patch) | |
tree | bb89ddd11be480880bc417e4df2743dc610b0937 /doc/python_api/examples/bpy.types.UIList.2.py | |
parent | 87e5c4230f9a90ffcd86c04479d67ae240da3e9a (diff) |
Cleanup: use equality instead of contains for single-item sets
Diffstat (limited to 'doc/python_api/examples/bpy.types.UIList.2.py')
-rw-r--r-- | doc/python_api/examples/bpy.types.UIList.2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/python_api/examples/bpy.types.UIList.2.py b/doc/python_api/examples/bpy.types.UIList.2.py index 5f3ecbf116c..05c9e9b3a17 100644 --- a/doc/python_api/examples/bpy.types.UIList.2.py +++ b/doc/python_api/examples/bpy.types.UIList.2.py @@ -73,7 +73,7 @@ class MESH_UL_vgroups_slow(bpy.types.UIList): layout.prop(vgroup, "name", text="", emboss=False, icon_value=icon) icon = 'LOCKED' if vgroup.lock_weight else 'UNLOCKED' layout.prop(vgroup, "lock_weight", text="", icon=icon, emboss=False) - elif self.layout_type in {'GRID'}: + elif self.layout_type == 'GRID': layout.alignment = 'CENTER' if flt_flag & self.VGROUP_EMPTY: layout.enabled = False |