diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-24 14:27:34 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-24 14:27:34 +0300 |
commit | f1a545c4a5b008008ad12665ac8881452aa7d3db (patch) | |
tree | 9f291bbd50f6d7b24f8e8069b3f2cf93a998ad0f /source/blender/makesrna/intern/rna_object_force.c | |
parent | b61adec1fd1bbaadbb3d4fc97e13ed474713f5a6 (diff) |
Bugfix #25367
Several Softbody int variables were accidentally RNA-ified as
float values. Didn't cause harm, but UI worked weird then,
cutting off the precision.
Diffstat (limited to 'source/blender/makesrna/intern/rna_object_force.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_object_force.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c index a1b9af78983..b0e487fa89c 100644 --- a/source/blender/makesrna/intern/rna_object_force.c +++ b/source/blender/makesrna/intern/rna_object_force.c @@ -1550,20 +1550,20 @@ static void rna_def_softbody(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Damp", "Edge spring friction"); RNA_def_property_update(prop, 0, "rna_softbody_update"); - prop= RNA_def_property(srna, "spring_length", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "springpreload"); + prop= RNA_def_property(srna, "spring_length", PROP_INT, PROP_NONE); + RNA_def_property_int_sdna(prop, NULL, "springpreload"); RNA_def_property_range(prop, 0.0f, 200.0f); RNA_def_property_ui_text(prop, "SL", "Alter spring length to shrink/blow up (unit %) 0 to disable"); RNA_def_property_update(prop, 0, "rna_softbody_update"); - prop= RNA_def_property(srna, "aero", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "aeroedge"); + prop= RNA_def_property(srna, "aero", PROP_INT, PROP_NONE); + RNA_def_property_int_sdna(prop, NULL, "aeroedge"); RNA_def_property_range(prop, 0.0f, 30000.0f); RNA_def_property_ui_text(prop, "Aero", "Make edges 'sail'"); RNA_def_property_update(prop, 0, "rna_softbody_update"); - prop= RNA_def_property(srna, "plastic", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "plastic"); + prop= RNA_def_property(srna, "plastic", PROP_INT, PROP_NONE); + RNA_def_property_int_sdna(prop, NULL, "plastic"); RNA_def_property_range(prop, 0.0f, 100.0f); RNA_def_property_ui_text(prop, "Plastic", "Permanent deform"); RNA_def_property_update(prop, 0, "rna_softbody_update"); |