[Bf-blender-cvs] [3076544c8c5] master: Fix T64725: light power property dragging uses too small increments

Brecht Van Lommel noreply at git.blender.org
Thu May 16 19:18:26 CEST 2019


Commit: 3076544c8c5202803924a36c671bbba307ec33f1
Author: Brecht Van Lommel
Date:   Thu May 16 19:17:32 2019 +0200
Branches: master
https://developer.blender.org/rB3076544c8c5202803924a36c671bbba307ec33f1

Fix T64725: light power property dragging uses too small increments

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

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

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

diff --git a/source/blender/makesrna/intern/rna_light.c b/source/blender/makesrna/intern/rna_light.c
index 54c8049d4d2..a271b883e38 100644
--- a/source/blender/makesrna/intern/rna_light.c
+++ b/source/blender/makesrna/intern/rna_light.c
@@ -205,7 +205,7 @@ static void rna_def_light_energy(StructRNA *srna, bool distant)
      * scene unit scale. */
     prop = RNA_def_property(srna, "energy", PROP_FLOAT, PROP_POWER);
     RNA_def_property_float_default(prop, 10.0f);
-    RNA_def_property_ui_range(prop, 0.0f, 1000000.0f, 1, 5);
+    RNA_def_property_ui_range(prop, 0.0f, 1000000.0f, 10, 5);
     RNA_def_property_ui_text(prop, "Power", "Amount of light emitted");
     RNA_def_property_update(prop, 0, "rna_Light_draw_update");
   }



More information about the Bf-blender-cvs mailing list