[Bf-blender-cvs] [4e5e3a9] master: Fix the classification + ordering of a few of the easing types

Joshua Leung noreply at git.blender.org
Thu Apr 24 04:32:19 CEST 2014


Commit: 4e5e3a978e497dad315fec2e3690c977a06ca779
Author: Joshua Leung
Date:   Thu Apr 24 14:28:30 2014 +1200
https://developer.blender.org/rB4e5e3a978e497dad315fec2e3690c977a06ca779

Fix the classification + ordering of a few of the easing types

After recently reading through Robert Penner's original descriptions of these
easing equations for some other work I've been doing, I realised that the
ordering I introduced earlier was slightly off (with regards to sine and circular
types). This commit recitifies these issues.

===================================================================

M	source/blender/makesrna/intern/rna_curve.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_curve.c b/source/blender/makesrna/intern/rna_curve.c
index f720a69..b82fac2 100644
--- a/source/blender/makesrna/intern/rna_curve.c
+++ b/source/blender/makesrna/intern/rna_curve.c
@@ -77,21 +77,19 @@ EnumPropertyItem beztriple_interpolation_mode_items[] = {
 	
 	/* easing */
 	{0, "", 0, N_("Easing (by strength)"), "Predefined inertial transitions, useful for motion graphics (from least to most ''dramatic'')"},
-	{BEZT_IPO_QUAD, "QUAD", 0, "Quadratic", "Quadratic easing (weakest)"},
+	{BEZT_IPO_SINE, "SINE", 0, "Sinusoidal", "Sinusoidal easing (weakest, almost linear but with a slight curvature)"},
+	{BEZT_IPO_QUAD, "QUAD", 0, "Quadratic", "Quadratic easing"},
 	{BEZT_IPO_CUBIC, "CUBIC", 0, "Cubic", "Cubic easing"},
 	{BEZT_IPO_QUART, "QUART", 0, "Quartic", "Quartic easing"},
 	{BEZT_IPO_QUINT, "QUINT", 0, "Quintic", "Quintic easing"},
-	{BEZT_IPO_EXPO, "EXPO", 0, "Exponential", "Exponential easing (strongest)"},
+	{BEZT_IPO_EXPO, "EXPO", 0, "Exponential", "Exponential easing (dramatic)"},
+	{BEZT_IPO_CIRC, "CIRC", 0, "Circular", "Circular easing (strongest and most dynamic)"},
 	
 	{0, "", 0, N_("Dynamic Effects"), "Simple physics-inspired easing effects"},
 	{BEZT_IPO_BACK, "BACK", 0, "Back", "Cubic easing with overshoot and settle"},
 	{BEZT_IPO_BOUNCE, "BOUNCE", 0, "Bounce", "Exponentially decaying parabolic bounce, like when objects collide"},
 	{BEZT_IPO_ELASTIC, "ELASTIC", 0, "Elastic", "Exponentially decaying sine wave, like an elastic band"},
 	
-	{0, "", 0, N_("Other"), "Other easing equations"},
-	{BEZT_IPO_SINE, "SINE", 0, "Sinusoidal", "Sinusoidal easing"},
-	{BEZT_IPO_CIRC, "CIRC", 0, "Circular", "Circular easing"},
-	
 	{0, NULL, 0, NULL, NULL}
 };




More information about the Bf-blender-cvs mailing list