[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33885] trunk/blender/source/blender/ makesrna/intern/rna_object_force.c: Bugfix #25367

Ton Roosendaal ton at blender.org
Fri Dec 24 12:27:35 CET 2010


Revision: 33885
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33885
Author:   ton
Date:     2010-12-24 12:27:34 +0100 (Fri, 24 Dec 2010)

Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_object_force.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_object_force.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_object_force.c	2010-12-24 10:15:57 UTC (rev 33884)
+++ trunk/blender/source/blender/makesrna/intern/rna_object_force.c	2010-12-24 11:27:34 UTC (rev 33885)
@@ -1550,20 +1550,20 @@
 	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");





More information about the Bf-blender-cvs mailing list