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:
authorJoseph Eagar <joeedh@gmail.com>2022-03-31 14:05:12 +0300
committerJoseph Eagar <joeedh@gmail.com>2022-03-31 14:05:12 +0300
commit9200581afccb477031375c4d792ab51daac3b083 (patch)
tree091835858c0b6c5ac50801ccedab870966f35aad /release/scripts
parentb1e68a8e3ff1ccf2f812d2e70d799d0121d7a8b1 (diff)
temp-sculpt-colors: Use static sets in python script
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_mesh.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py
index 4b0947d573e..c2a435692fe 100644
--- a/release/scripts/startup/bl_ui/properties_data_mesh.py
+++ b/release/scripts/startup/bl_ui/properties_data_mesh.py
@@ -598,8 +598,8 @@ class MESH_UL_color_attributes(UIList):
idxs = []
for idx, item in enumerate(attrs):
- skip = item.domain not in ["POINT", "CORNER"]
- skip = skip or item.data_type not in ["FLOAT_COLOR", "BYTE_COLOR"]
+ skip = item.domain not in {"POINT", "CORNER"}
+ skip = skip or item.data_type not in {"FLOAT_COLOR", "BYTE_COLOR"}
ret.append(self.bitflag_filter_item if not skip else 0)
idxs.append(idx)