diff options
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_pointcloud.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_pointcloud.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_pointcloud.py b/release/scripts/startup/bl_ui/properties_data_pointcloud.py index d7ff7389fc3..f2464fb9765 100644 --- a/release/scripts/startup/bl_ui/properties_data_pointcloud.py +++ b/release/scripts/startup/bl_ui/properties_data_pointcloud.py @@ -56,7 +56,7 @@ class POINTCLOUD_MT_add_attribute(Menu): @staticmethod def add_standard_attribute(layout, pointcloud, name, data_type, domain): - exists = pointcloud.attributes.get(name) != None + exists = pointcloud.attributes.get(name) is not None col = layout.column() col.enabled = not exists @@ -105,14 +105,21 @@ class DATA_PT_pointcloud_attributes(DataButtonsPanel, Panel): row = layout.row() col = row.column() - col.template_list("POINTCLOUD_UL_attributes", "attributes", pointcloud, "attributes", pointcloud.attributes, "active_index", rows=3) + col.template_list( + "POINTCLOUD_UL_attributes", + "attributes", + pointcloud, + "attributes", + pointcloud.attributes, + "active_index", + rows=3, + ) col = row.column(align=True) col.menu("POINTCLOUD_MT_add_attribute", icon='ADD', text="") col.operator("geometry.attribute_remove", icon='REMOVE', text="") - class DATA_PT_custom_props_pointcloud(DataButtonsPanel, PropertyPanel, Panel): COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} _context_path = "object.data" |