From 1425b356b842377c8f83f271360f1fe67b4fa580 Mon Sep 17 00:00:00 2001 From: Ethan-Hall Date: Thu, 28 Apr 2022 13:08:34 -0500 Subject: UI: Fix consistency issues with attribute tooltips and icons This patch modifies tooltips of attributes and UV maps to resolve inconsistencies. It also restores the vertex color icon that went missing from the UI lists when color attributes replaced vertex colors. Fixes T97614 Differential Revision: https://developer.blender.org/D14768 --- release/scripts/startup/bl_ui/properties_data_mesh.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'release/scripts/startup/bl_ui') diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py index d7c885cf870..050bf56966f 100644 --- a/release/scripts/startup/bl_ui/properties_data_mesh.py +++ b/release/scripts/startup/bl_ui/properties_data_mesh.py @@ -600,7 +600,7 @@ class MESH_UL_color_attributes(UIList, ColorAttributesListBase): split = layout.split(factor=0.50) split.emboss = 'NONE' - split.prop(attribute, "name", text="") + split.prop(attribute, "name", text="", icon='GROUP_VCOL') sub = split.row() sub.alignment = 'RIGHT' @@ -620,9 +620,9 @@ class MESH_UL_color_attributes(UIList, ColorAttributesListBase): class MESH_UL_color_attributes_selector(UIList, ColorAttributesListBase): - def draw_item(self, _context, layout, data, attribute, _icon, _active_data, _active_propname, _index): + def draw_item(self, _context, layout, _data, attribute, _icon, _active_data, _active_propname, _index): layout.emboss = 'NONE' - layout.prop(attribute, "name", text="", icon='COLOR') + layout.prop(attribute, "name", text="", icon='GROUP_VCOL') class DATA_PT_vertex_colors(DATA_PT_mesh_attributes, Panel): -- cgit v1.2.3