From 50687b31836e97585bfe7c3468910a88a47089b7 Mon Sep 17 00:00:00 2001 From: William Reynish Date: Mon, 18 Feb 2019 14:10:07 +1100 Subject: UI: improve light probe properties layout Smaller adjustments to the Light Probe properties layout. - Correctly use alignment for multi-property values. - Correctly use sub-panels. - Correctly use PROP_FACTOR for visibility_bleed_bias and visibility_blur. --- source/blender/makesrna/intern/rna_lightprobe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/makesrna/intern/rna_lightprobe.c') diff --git a/source/blender/makesrna/intern/rna_lightprobe.c b/source/blender/makesrna/intern/rna_lightprobe.c index 1638501d68f..427ce36aa44 100644 --- a/source/blender/makesrna/intern/rna_lightprobe.c +++ b/source/blender/makesrna/intern/rna_lightprobe.c @@ -171,14 +171,14 @@ static void rna_def_lightprobe(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Visibility Bias", "Bias for reducing self shadowing"); RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING, NULL); - prop = RNA_def_property(srna, "visibility_bleed_bias", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "visibility_bleed_bias", PROP_FLOAT, PROP_FACTOR); RNA_def_property_float_sdna(prop, NULL, "vis_bleedbias"); RNA_def_property_float_default(prop, 0.0f); RNA_def_property_range(prop, 0.0f, 1.0f); RNA_def_property_ui_text(prop, "Visibility Bleed Bias", "Bias for reducing light-bleed on variance shadow maps"); RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING, NULL); - prop = RNA_def_property(srna, "visibility_blur", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "visibility_blur", PROP_FLOAT, PROP_FACTOR); RNA_def_property_float_sdna(prop, NULL, "vis_blur"); RNA_def_property_float_default(prop, 0.2f); RNA_def_property_range(prop, 0.0f, 1.0f); -- cgit v1.2.3