From ee93bc806ba8d51f754e20b30eb041fa4ec99b5f Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 9 Jun 2017 11:56:40 +0200 Subject: [PATCH] Eevee DoF: Use more reasonable UI range for anamorphic bokeh Regular camera lens have a ratio of 1.0. The anamorphic bokeh can be used freely as an artistic decision, but it's nice to clamp it to 2.0, to match real cameras. That end up giving a reference for artistis playing with the parameters unaware of the more realistic limits. --- source/blender/makesrna/intern/rna_scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index e0c43dafda5..ee99e295feb 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -5894,7 +5894,7 @@ static void rna_def_gpu_dof_fx(BlenderRNA *brna) prop = RNA_def_property(srna, "ratio", PROP_FLOAT, PROP_NONE); RNA_def_property_ui_text(prop, "Ratio", "Distortion to simulate anamorphic lens bokeh"); RNA_def_property_range(prop, 0.0000001f, FLT_MAX); - RNA_def_property_ui_range(prop, 0.25f, 4.0f, 0.1, 3); + RNA_def_property_ui_range(prop, 1.0f, 2.0f, 0.1, 3); RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); prop = RNA_def_property(srna, "use_high_quality", PROP_BOOLEAN, PROP_NONE);