Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2014-04-24 06:28:30 +0400
committerJoshua Leung <aligorith@gmail.com>2014-04-24 06:29:11 +0400
commit4e5e3a978e497dad315fec2e3690c977a06ca779 (patch)
treee1e8113d4557c2acc8ef618539cb03fee359abbc /source/blender/makesrna/intern/rna_curve.c
parent1fabfc9ea2c7b36f0827269fcf07d162a879a227 (diff)
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.
Diffstat (limited to 'source/blender/makesrna/intern/rna_curve.c')
-rw-r--r--source/blender/makesrna/intern/rna_curve.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_curve.c b/source/blender/makesrna/intern/rna_curve.c
index f720a695ef1..b82fac223c3 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}
};