[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36198] trunk/blender/source/blender/ makesrna/intern/rna_curve.c: Fix #26989: Smooth tangent Iteration field in Curve panel not responding.

Sergey Sharybin g.ulairi at gmail.com
Sun Apr 17 14:13:03 CEST 2011


Revision: 36198
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36198
Author:   nazgul
Date:     2011-04-17 12:13:02 +0000 (Sun, 17 Apr 2011)
Log Message:
-----------
Fix #26989: Smooth tangent Iteration field in Curve panel not responding.

Not sure what's the uint of step argument for RNA_def_property_ui_range, but
i just set the same values as in other cases used (like Camera.draw_size)

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

Modified: trunk/blender/source/blender/makesrna/intern/rna_curve.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_curve.c	2011-04-17 10:05:27 UTC (rev 36197)
+++ trunk/blender/source/blender/makesrna/intern/rna_curve.c	2011-04-17 12:13:02 UTC (rev 36198)
@@ -1355,7 +1355,7 @@
 	// XXX - would be nice to have a better way to do this, only add for testing.
 	prop= RNA_def_property(srna, "twist_smooth", PROP_FLOAT, PROP_NONE);
 	RNA_def_property_float_sdna(prop, NULL, "twist_smooth");
-	RNA_def_property_ui_range(prop, 0, 100.0, 0.1, 0);
+	RNA_def_property_ui_range(prop, 0, 100.0, 1, 2);
 	RNA_def_property_ui_text(prop, "Twist Smooth", "Smoothing iteration for tangents");
 	RNA_def_property_update(prop, 0, "rna_Curve_update_data");
 




More information about the Bf-blender-cvs mailing list