[Bf-blender-cvs] [e15bba38d5b] master: Fix: Hair Length was using wrong unit

William Reynish noreply at git.blender.org
Wed May 29 12:12:54 CEST 2019


Commit: e15bba38d5bba66a35d144abee1a0b14ba042484
Author: William Reynish
Date:   Wed May 29 12:12:52 2019 +0200
Branches: master
https://developer.blender.org/rBe15bba38d5bba66a35d144abee1a0b14ba042484

Fix: Hair Length was using wrong unit

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

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 a3178e0407f..dff7421ed74 100644
--- a/source/blender/makesrna/intern/rna_particle.c
+++ b/source/blender/makesrna/intern/rna_particle.c
@@ -2905,7 +2905,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
       prop, "Random Phase", "Randomize rotation around the chosen orientation axis");
   RNA_def_property_update(prop, 0, "rna_Particle_reset");
 
-  prop = RNA_def_property(srna, "hair_length", PROP_FLOAT, PROP_NONE);
+  prop = RNA_def_property(srna, "hair_length", PROP_FLOAT, PROP_DISTANCE);
   RNA_def_property_float_funcs(
       prop, "rna_PartSetting_hairlength_get", "rna_PartSetting_hairlength_set", NULL);
   RNA_def_property_range(prop, 0.0f, 1000.0f);



More information about the Bf-blender-cvs mailing list