Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_pointcloud.py
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
| layout.operator("geometry.attribute_add", text="Custom...") | layout.operator("geometry.attribute_add", text="Custom...") | ||||
| class POINTCLOUD_UL_attributes(UIList): | class POINTCLOUD_UL_attributes(UIList): | ||||
| 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): | ||||
| data_type = attribute.bl_rna.properties['data_type'].enum_items[attribute.data_type] | data_type = attribute.bl_rna.properties['data_type'].enum_items[attribute.data_type] | ||||
| split = layout.split(factor=0.75) | split = layout.split(factor=0.75) | ||||
| split.prop(attribute, "name", text="", emboss=False) | split.emboss = 'NONE' | ||||
| split.prop(attribute, "name", text="") | |||||
| sub = split.row() | sub = split.row() | ||||
| sub.alignment = 'RIGHT' | sub.alignment = 'RIGHT' | ||||
| sub.active = False | sub.active = False | ||||
| sub.label(text=data_type.name) | sub.label(text=data_type.name) | ||||
| class DATA_PT_pointcloud_attributes(DataButtonsPanel, Panel): | class DATA_PT_pointcloud_attributes(DataButtonsPanel, Panel): | ||||
| bl_label = "Attributes" | bl_label = "Attributes" | ||||
| ▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines | |||||