[Bf-blender-cvs] [02d82a9] fracture_modifier: limit autohide distance between 0.0 and 10.0 (mostly very low positive values are used, like 0.001)

Martin Felke noreply at git.blender.org
Mon Feb 9 14:24:42 CET 2015


Commit: 02d82a90357182290b4a7410dbec323f3d58997a
Author: Martin Felke
Date:   Mon Feb 9 14:24:09 2015 +0100
Branches: fracture_modifier
https://developer.blender.org/rB02d82a90357182290b4a7410dbec323f3d58997a

limit autohide distance between 0.0 and 10.0 (mostly very low positive values are used, like 0.001)

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

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

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

diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index f482d3d..0222336 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -4068,6 +4068,7 @@ static void rna_def_modifier_fracture(BlenderRNA *brna)
 	prop = RNA_def_property(srna, "autohide_dist", PROP_FLOAT, PROP_NONE);
 	RNA_def_property_float_sdna(prop, NULL, "autohide_dist");
 	RNA_def_property_float_funcs(prop, NULL, "rna_RigidBodyModifier_autohide_dist_set", NULL);
+	RNA_def_property_range(prop, 0.0f, 10.0f);
 	RNA_def_property_ui_text(prop, "Autohide Distance", "Distance between faces below which both faces should be hidden");
 	RNA_def_property_update(prop, 0, "rna_Modifier_update");




More information about the Bf-blender-cvs mailing list