From 958e3a8cc12032343f4ffd18cf1ffcf7d7fd9bd2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 22 Mar 2021 17:58:24 +1100 Subject: RNA: use boolean array for transarency masks There is no need to expose this as multiple properties, also use `use_` prefix for boolean properties. --- release/scripts/startup/bl_ui/properties_material.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'release/scripts/startup') diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py index ebd91143239..d85078d4ec2 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -296,14 +296,8 @@ class MATERIAL_PT_lineart(MaterialButtonsPanel, Panel): layout.label(text="Transparency Masks:") row = layout.row(align=True) - row.prop(lineart, "transparency_mask_0", text="0", toggle=True) - row.prop(lineart, "transparency_mask_1", text="1", toggle=True) - row.prop(lineart, "transparency_mask_2", text="2", toggle=True) - row.prop(lineart, "transparency_mask_3", text="3", toggle=True) - row.prop(lineart, "transparency_mask_4", text="4", toggle=True) - row.prop(lineart, "transparency_mask_5", text="5", toggle=True) - row.prop(lineart, "transparency_mask_6", text="6", toggle=True) - row.prop(lineart, "transparency_mask_7", text="7", toggle=True) + for i in range(8): + row.prop(lineart, "use_transparency_mask", text=str(i), index=i, toggle=True) classes = ( -- cgit v1.2.3