[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26487] trunk/blender: Added ' Evaluation Time' setting access to Path Animation panel.
Joshua Leung
aligorith at gmail.com
Mon Feb 1 00:41:38 CET 2010
Revision: 26487
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26487
Author: aligorith
Date: 2010-02-01 00:41:38 +0100 (Mon, 01 Feb 2010)
Log Message:
-----------
Added 'Evaluation Time' setting access to Path Animation panel.
This was previously only available from the datablocks viewer, but this is the direct replacement to the badly named 'speed' ipo-curve in the past ('speed' implies a rate that must be integrated/added to the results of past frame, rather than a factor).
Also, tweaked the RNA definition so that this shows as a slider (i.e. a factor), since the valid values for this are clamped to the [0, 1].
Modified Paths:
--------------
trunk/blender/release/scripts/ui/properties_data_curve.py
trunk/blender/source/blender/makesrna/intern/rna_curve.c
Modified: trunk/blender/release/scripts/ui/properties_data_curve.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_curve.py 2010-01-31 23:33:04 UTC (rev 26486)
+++ trunk/blender/release/scripts/ui/properties_data_curve.py 2010-01-31 23:41:38 UTC (rev 26487)
@@ -180,12 +180,10 @@
layout.active = curve.use_path
- row = layout.row()
+ col = layout.column()
layout.prop(curve, "path_length", text="Frames")
+ layout.prop(curve, "eval_time")
- if wide_ui:
- row.label()
-
split = layout.split()
col = split.column()
Modified: trunk/blender/source/blender/makesrna/intern/rna_curve.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_curve.c 2010-01-31 23:33:04 UTC (rev 26486)
+++ trunk/blender/source/blender/makesrna/intern/rna_curve.c 2010-01-31 23:41:38 UTC (rev 26487)
@@ -831,7 +831,7 @@
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_NONE);
+ prop= RNA_def_property(srna, "eval_time", PROP_FLOAT, PROP_FACTOR);
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_update(prop, 0, "rna_Curve_update_data");
More information about the Bf-blender-cvs
mailing list