diff options
author | Ethan-Hall <Ethan1080> | 2022-04-28 21:08:34 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-04-28 21:08:52 +0300 |
commit | 1425b356b842377c8f83f271360f1fe67b4fa580 (patch) | |
tree | 9605daea048d93a60298f5753b341d71e45a6ad5 /release/scripts/startup/bl_ui/properties_data_mesh.py | |
parent | c722993ef19d6e6a564311f4bdc3cfb214b1474a (diff) |
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
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_mesh.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_mesh.py | 6 |
1 files changed, 3 insertions, 3 deletions
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): |