diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-11-19 11:37:19 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-11-19 11:37:19 +0300 |
commit | ba36dd3cc55333c8bd716d23cf00e8d1a4f6dac3 (patch) | |
tree | 22a782a620654787370421dc917d4be237e5ec0e /source/blender/makesrna/intern/rna_material.c | |
parent | 53d0bdd6b3b6a3d65485d63a45b026e6e28c6375 (diff) |
"Fix" for [#24743] Strand Shading: Distance slider gives different results even when greyed out
* The actual flag was set at render time, was not supposed to be editable manually.
Diffstat (limited to 'source/blender/makesrna/intern/rna_material.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_material.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c index c238ed6991d..3ec9d9f32ba 100644 --- a/source/blender/makesrna/intern/rna_material.c +++ b/source/blender/makesrna/intern/rna_material.c @@ -1425,8 +1425,10 @@ static void rna_def_material_strand(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Tangent Shading", "Uses direction of strands as normal for tangent-shading"); RNA_def_property_update(prop, 0, "rna_Material_update"); + /* this flag is only set when rendering, not to be edited manually */ prop= RNA_def_property(srna, "use_surface_diffuse", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "mode", MA_STR_SURFDIFF); + RNA_def_property_clear_flag(prop, PROP_EDITABLE); RNA_def_property_ui_text(prop, "Surface Diffuse", "Make diffuse shading more similar to shading the surface"); RNA_def_property_update(prop, 0, "rna_Material_update"); |