[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26570] trunk/blender/source/blender/ makesrna/intern/rna_curve.c: Bugfix #20935: Evaluation Time For Curves No Longer Accepts Input Over 1.0

Joshua Leung aligorith at gmail.com
Wed Feb 3 07:30:17 CET 2010


Revision: 26570
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26570
Author:   aligorith
Date:     2010-02-03 07:30:16 +0100 (Wed, 03 Feb 2010)

Log Message:
-----------
Bugfix #20935: Evaluation Time For Curves No Longer Accepts Input Over 1.0

Reverting the part of an earlier commit to show the Evaluation time in the Path panel that made the Evaluation Time setting a factor. This setting should not be a factor, since it gets divided by 'Path Length' to normalise it to the 0-1 range needed. When this setting isn't animated, the evaluation time setting is automatically set to the current frame number, so that when divided by Path Length, child objects still follow the curve. 

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	2010-02-03 02:31:29 UTC (rev 26569)
+++ trunk/blender/source/blender/makesrna/intern/rna_curve.c	2010-02-03 06:30:16 UTC (rev 26570)
@@ -460,8 +460,8 @@
 	/* number values */
 	prop= RNA_def_property(srna, "path_length", PROP_INT, PROP_NONE);
 	RNA_def_property_int_sdna(prop, NULL, "pathlen");
-	RNA_def_property_range(prop, 1, 32767);
-	RNA_def_property_ui_text(prop, "Path Length", "If no speed IPO was set, the length of path in frames.");
+	RNA_def_property_range(prop, 1, MAXFRAME);
+	RNA_def_property_ui_text(prop, "Path Length", "The number of frames that are needed to traverse the path, defining the maximum value for the 'Evaluation Time' setting.");
 	RNA_def_property_update(prop, 0, "rna_Curve_update_data");
 	
 	/* flags */
@@ -830,9 +830,9 @@
 	RNA_def_property_ui_text(prop, "Render Resolution V", "Surface resolution in V direction used while rendering. Zero skips this property.");
 	
 	
-	prop= RNA_def_property(srna, "eval_time", PROP_FLOAT, PROP_FACTOR);
+	prop= RNA_def_property(srna, "eval_time", PROP_FLOAT, PROP_NONE);
 	RNA_def_property_float_sdna(prop, NULL, "ctime");
-	RNA_def_property_ui_text(prop, "Evaluation Time", "Parametric position along the length of the curve that Objects 'following' it should be at.");
+	RNA_def_property_ui_text(prop, "Evaluation Time", "Parametric position along the length of the curve that Objects 'following' it should be at. Position is evaluated by dividing by the 'Path Length' value.");
 	RNA_def_property_update(prop, 0, "rna_Curve_update_data");
 	
 	/* pointers */





More information about the Bf-blender-cvs mailing list