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.
This commit is contained in:
Joshua Leung
2010-02-03 06:30:16 +00:00
parent 2c5ef58b8b
commit 742ef3b4cc

View File

@@ -460,8 +460,8 @@ static void rna_def_path(BlenderRNA *brna, StructRNA *srna)
/* 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 @@ static void rna_def_curve(BlenderRNA *brna)
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 */