diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_light.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_light.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_light.c b/source/blender/makesrna/intern/rna_light.c index bb99e5c6c1d..0593db0dd56 100644 --- a/source/blender/makesrna/intern/rna_light.c +++ b/source/blender/makesrna/intern/rna_light.c @@ -480,6 +480,15 @@ static void rna_def_area_light(BlenderRNA *brna) "Size Y", "Size of the area of the area light in the Y direction for rectangle shapes"); RNA_def_property_update(prop, 0, "rna_Light_draw_update"); + + prop = RNA_def_property(srna, "spread", PROP_FLOAT, PROP_ANGLE); + RNA_def_property_float_sdna(prop, NULL, "area_spread"); + RNA_def_property_range(prop, DEG2RADF(1.0f), DEG2RADF(180.0f)); + RNA_def_property_ui_text( + prop, + "Spread", + "How widely the emitted light fans out, as in the case of a gridded softbox"); + RNA_def_property_update(prop, 0, "rna_Light_draw_update"); } static void rna_def_spot_light(BlenderRNA *brna) |