Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2020-09-10 21:16:30 +0300
committerJulian Eisel <julian@blender.org>2020-09-10 21:19:03 +0300
commit2ea2ec023ddcff4b593ff8179c96e56f166b032f (patch)
treee37ed7ff0245f43168e35d6b856bd70923ba18ef
parent3d53fa581ce5a3faee2c5f35ac7c2294d135dc0a (diff)
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.
-rw-r--r--source/blender/makesrna/intern/rna_particle.c2
1 files changed, 1 insertions, 1 deletions
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");