Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_mesh.py
| Show First 20 Lines • Show All 601 Lines • ▼ Show 20 Lines | def draw_attribute_warnings(self, context, layout): | ||||
| mesh = context.mesh | mesh = context.mesh | ||||
| unique_names = set() | unique_names = set() | ||||
| colliding_names = [] | colliding_names = [] | ||||
| for collection in ( | for collection in ( | ||||
| # Built-in names. | # Built-in names. | ||||
| {"shade_smooth": None, "normal": None, "crease": None}, | {"shade_smooth": None, "normal": None, "crease": None}, | ||||
| mesh.attributes, | mesh.attributes, | ||||
| mesh.uv_layers, | |||||
| None if ob is None else ob.vertex_groups, | None if ob is None else ob.vertex_groups, | ||||
| ): | ): | ||||
| if collection is None: | if collection is None: | ||||
| colliding_names.append("Cannot check for object vertex groups when pinning mesh") | colliding_names.append("Cannot check for object vertex groups when pinning mesh") | ||||
| continue | continue | ||||
| for name in collection.keys(): | for name in collection.keys(): | ||||
| unique_names_len = len(unique_names) | unique_names_len = len(unique_names) | ||||
| unique_names.add(name) | unique_names.add(name) | ||||
| ▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines | |||||