[Bf-blender-cvs] [2ea2ec023dd] master: Fix particle "Mass" option not showing enough precision (appears broken)

Julian Eisel noreply at git.blender.org
Thu Sep 10 20:19:36 CEST 2020


Commit: 2ea2ec023ddcff4b593ff8179c96e56f166b032f
Author: Julian Eisel
Date:   Thu Sep 10 20:16:30 2020 +0200
Branches: master
https://developer.blender.org/rB2ea2ec023ddcff4b593ff8179c96e56f166b032f

Fix particle "Mass" option not showing enough precision (appears broken)

When using the left and right arrows of the number button, the button
would seem to do nothing. That is because it modified a value smaller
than what is displayed. Show more precision so the button doesn't appear
broken.

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

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

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

diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c
index f64488550cb..eab6349317a 100644
--- a/source/blender/makesrna/intern/rna_particle.c
+++ b/source/blender/makesrna/intern/rna_particle.c
@@ -3019,7 +3019,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
   /* physical properties */
   prop = RNA_def_property(srna, "mass", PROP_FLOAT, PROP_UNIT_MASS);
   RNA_def_property_range(prop, 0.00000001f, 100000.0f);
-  RNA_def_property_ui_range(prop, 0.01, 100, 1, 3);
+  RNA_def_property_ui_range(prop, 0.01, 100, 1, 4);
   RNA_def_property_ui_text(prop, "Mass", "Mass of the particles");
   RNA_def_property_update(prop, 0, "rna_Particle_reset");



More information about the Bf-blender-cvs mailing list