[Bf-blender-cvs] [a764a3cd1c1] master: Units: Use PROP_DISTANCE for emitter_distance

William Reynish noreply at git.blender.org
Mon Mar 18 21:32:04 CET 2019


Commit: a764a3cd1c1d01f782213ceb42d57a3bbfe70150
Author: William Reynish
Date:   Mon Mar 18 21:32:02 2019 +0100
Branches: master
https://developer.blender.org/rBa764a3cd1c1d01f782213ceb42d57a3bbfe70150

Units: Use PROP_DISTANCE for emitter_distance

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

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

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

diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c
index b66363f45ae..395daa76db3 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -1064,7 +1064,7 @@ static void rna_def_particle_edit(BlenderRNA *brna)
 	RNA_def_property_boolean_sdna(prop, NULL, "flag", PE_DEFLECT_EMITTER);
 	RNA_def_property_ui_text(prop, "Deflect Emitter", "Keep paths from intersecting the emitter");
 
-	prop = RNA_def_property(srna, "emitter_distance", PROP_FLOAT, PROP_UNSIGNED);
+	prop = RNA_def_property(srna, "emitter_distance", PROP_FLOAT, PROP_DISTANCE);
 	RNA_def_property_float_sdna(prop, NULL, "emitterdist");
 	RNA_def_property_ui_range(prop, 0.0f, 10.0f, 10, 3);
 	RNA_def_property_ui_text(prop, "Emitter Distance", "Distance to keep particles away from the emitter");



More information about the Bf-blender-cvs mailing list