[Bf-blender-cvs] [9200581afcc] temp-sculpt-colors: temp-sculpt-colors: Use static sets in python script
Joseph Eagar
noreply at git.blender.org
Thu Mar 31 13:06:10 CEST 2022
Commit: 9200581afccb477031375c4d792ab51daac3b083
Author: Joseph Eagar
Date: Thu Mar 31 04:05:12 2022 -0700
Branches: temp-sculpt-colors
https://developer.blender.org/rB9200581afccb477031375c4d792ab51daac3b083
temp-sculpt-colors: Use static sets in python script
===================================================================
M release/scripts/startup/bl_ui/properties_data_mesh.py
===================================================================
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)
More information about the Bf-blender-cvs
mailing list