diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-07-11 13:39:20 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-07-11 13:39:35 +0300 |
commit | c0f2cbab4eef7047adc290f9abd8b4ffae6450eb (patch) | |
tree | 1d62033031b8f741841c4637304742d65d667aad /release | |
parent | ec9330d206494a934df64d52f133c920d2ea41d3 (diff) |
Eevee: Transparency: Add transparent Shadow method UI.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_material.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py index 88fc2a42734..e7e92000723 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -1172,12 +1172,18 @@ class EEVEE_MATERIAL_PT_options(MaterialButtonsPanel, Panel): layout.prop(mat, "blend_method") - if mat.blend_method not in {"CLIP", "HASHED"}: - layout.prop(mat, "blend_hide_backside") + if mat.blend_method != "OPAQUE": + layout.prop(mat, "transparent_shadow_method") - if mat.blend_method == "CLIP": + row = layout.row() + row.active = ((mat.blend_method == "CLIP") or (mat.transparent_shadow_method == "CLIP")) layout.prop(mat, "alpha_threshold") + if mat.blend_method not in {"OPAQUE", "CLIP", "HASHED"}: + layout.prop(mat, "transparent_hide_backside") + + + classes = ( MATERIAL_MT_sss_presets, MATERIAL_MT_specials, |