[Bf-blender-cvs] [cc6e97d426b] blender2.8: Lamps: Remove uper limit of the buffer bias parameter.

Clément Foucault noreply at git.blender.org
Sun Sep 10 03:16:50 CEST 2017


Commit: cc6e97d426b4fca6421958a4c7dcd62fea480c16
Author: Clément Foucault
Date:   Thu Sep 7 15:17:03 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBcc6e97d426b4fca6421958a4c7dcd62fea480c16

Lamps: Remove uper limit of the buffer bias parameter.

===================================================================

M	source/blender/makesrna/intern/rna_lamp.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_lamp.c b/source/blender/makesrna/intern/rna_lamp.c
index 76f5044a95c..613dc4998b6 100644
--- a/source/blender/makesrna/intern/rna_lamp.c
+++ b/source/blender/makesrna/intern/rna_lamp.c
@@ -587,7 +587,8 @@ static void rna_def_lamp_shadow(StructRNA *srna, int spot, int area)
 
 	prop = RNA_def_property(srna, "shadow_buffer_bias", PROP_FLOAT, PROP_NONE);
 	RNA_def_property_float_sdna(prop, NULL, "bias");
-	RNA_def_property_range(prop, 0.001f, 5.0f);
+	RNA_def_property_range(prop, 0.001f, 9999.0f);
+	RNA_def_property_ui_range(prop, 0.001f, 5.0f, 1.0, 3);
 	RNA_def_property_ui_text(prop, "Shadow Buffer Bias", "Bias for reducing self shadowing");
 	RNA_def_property_update(prop, 0, "rna_Lamp_update");



More information about the Bf-blender-cvs mailing list