[Bf-blender-cvs] [aa6817616c1] temp-attributes-panel: Initial attribute list for meshes.

Jacques Lucke noreply at git.blender.org
Fri May 21 12:38:51 CEST 2021


Commit: aa6817616c17d323fe5da79bba8590f6b2fb1c1d
Author: Jacques Lucke
Date:   Mon May 17 13:15:17 2021 +0200
Branches: temp-attributes-panel
https://developer.blender.org/rBaa6817616c17d323fe5da79bba8590f6b2fb1c1d

Initial attribute list for meshes.

Differential Revision: https://developer.blender.org/D11276

===================================================================

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 f1efb59146f..e7eedfbc842 100644
--- a/release/scripts/startup/bl_ui/properties_data_mesh.py
+++ b/release/scripts/startup/bl_ui/properties_data_mesh.py
@@ -572,13 +572,13 @@ class MESH_UL_attributes(UIList):
     def draw_item(self, _context, layout, _data, attribute, _icon, _active_data, _active_propname, _index):
         data_type = attribute.bl_rna.properties['data_type'].enum_items[attribute.data_type]
 
-        split = layout.split(factor=0.75)
+        split = layout.split(factor=0.50)
         split.emboss = 'NONE'
         split.prop(attribute, "name", text="")
         sub = split.row()
         sub.alignment = 'RIGHT'
         sub.active = False
-        sub.label(text=data_type.name)
+        sub.label(text="%s ▶ %s" % (attribute.domain.title(), data_type.name))
 
 
 class MESH_MT_add_attribute(Menu):



More information about the Bf-blender-cvs mailing list