Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-03-22 09:58:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-22 10:04:12 +0300
commit958e3a8cc12032343f4ffd18cf1ffcf7d7fd9bd2 (patch)
tree782609c22187e452fbce6e8fcb301fa6fe0eaadc /release/scripts/startup/bl_ui/properties_material.py
parentcb521bd37b26d069cfefec9683312e27c4caae90 (diff)
RNA: use boolean array for transarency masks
There is no need to expose this as multiple properties, also use `use_` prefix for boolean properties.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_material.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_material.py10
1 files changed, 2 insertions, 8 deletions
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 = (