diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-11 23:25:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-11 23:25:32 +0300 |
commit | 6db00065c5e7f0e16e6970d6351560c36a9536ba (patch) | |
tree | 3e4e63beeadcbaa76a6eb0fbdfc43cd1e570e18e /source/blender/makesrna/intern/rna_material.c | |
parent | 9a076dd95a01135ea50f9ccc675668db9f2155f4 (diff) |
Cleanup: remove redundant RNA defaults
These are now set from DNA defaults.
Diffstat (limited to 'source/blender/makesrna/intern/rna_material.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_material.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c index 8f627ce36ef..9da17c5f0b1 100644 --- a/source/blender/makesrna/intern/rna_material.c +++ b/source/blender/makesrna/intern/rna_material.c @@ -370,7 +370,6 @@ static void rna_def_material_display(StructRNA *srna) prop = RNA_def_property(srna, "roughness", PROP_FLOAT, PROP_FACTOR); RNA_def_property_float_sdna(prop, NULL, "roughness"); - RNA_def_property_float_default(prop, 0.25f); RNA_def_property_range(prop, 0, 1); RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); RNA_def_property_ui_text(prop, "Roughness", "Roughness of the material"); @@ -378,7 +377,6 @@ static void rna_def_material_display(StructRNA *srna) prop = RNA_def_property(srna, "specular_intensity", PROP_FLOAT, PROP_FACTOR); RNA_def_property_float_sdna(prop, NULL, "spec"); - RNA_def_property_float_default(prop, 0.5f); RNA_def_property_range(prop, 0, 1); RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); RNA_def_property_ui_text(prop, "Specular", "How intense (bright) the specular reflection is"); |