diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-01-29 22:33:51 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-01-29 22:34:37 +0300 |
commit | 1a61c209a0ff7c7b10a3b9bd00cb125fd5e21de6 (patch) | |
tree | 7e2d3a9caeaaec06b940ba6a6bb674f4c38747a9 /source/blender/makesrna/intern | |
parent | 43150b02a0067a7bc5c1e39797815cd2d907be8f (diff) |
Workbench: Make Material transparency part of the rgba color picker
It is only used for solid mode for now but could be used by eevee in the
future.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_material.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c index b32d3aa9d78..4a6ab3e8882 100644 --- a/source/blender/makesrna/intern/rna_material.c +++ b/source/blender/makesrna/intern/rna_material.c @@ -354,7 +354,7 @@ static void rna_def_material_display(StructRNA *srna) prop = RNA_def_property(srna, "diffuse_color", PROP_FLOAT, PROP_COLOR); RNA_def_property_float_sdna(prop, NULL, "r"); - RNA_def_property_array(prop, 3); + RNA_def_property_array(prop, 4); RNA_def_property_ui_text(prop, "Diffuse Color", "Diffuse color of the material"); RNA_def_property_update(prop, 0, "rna_Material_draw_update"); @@ -384,12 +384,6 @@ static void rna_def_material_display(StructRNA *srna) RNA_def_property_ui_text(prop, "Metallic", "Amount of mirror reflection for raytrace"); RNA_def_property_update(prop, 0, "rna_Material_update"); - prop = RNA_def_property(srna, "transparency", PROP_FLOAT, PROP_FACTOR); - RNA_def_property_float_sdna(prop, NULL, "transparency"); - RNA_def_property_range(prop, 0.0f, 1.0f); - RNA_def_property_ui_text(prop, "Transparency", "Amount of transparency in solid mode"); - RNA_def_property_update(prop, 0, "rna_Material_draw_update"); - /* Freestyle line color */ prop = RNA_def_property(srna, "line_color", PROP_FLOAT, PROP_COLOR); RNA_def_property_float_sdna(prop, NULL, "line_col"); |