Fix T43301: Three of the 'mirror keyframes' tools were mirroring along wrong axis.

Names are rather confusing here... :/
This commit is contained in:
Bastien Montagne 2015-01-17 23:09:41 +01:00
parent 119ff676e1
commit 6e97db7b30
Notes: blender-bot 2023-02-14 09:36:40 +01:00
Referenced by issue #43344, Blender 2.73 taking too long to save a project
Referenced by issue #43303, Impossible to select a joint in stick bone mode
Referenced by issue #43301, fcurve mirror fuction swapped
Referenced by issue #43283, Crash Upon Opening File
1 changed files with 5 additions and 3 deletions

View File

@ -785,7 +785,8 @@ static short mirror_bezier_cframe(KeyframeEditData *ked, BezTriple *bezt)
static short mirror_bezier_yaxis(KeyframeEditData *UNUSED(ked), BezTriple *bezt)
{
if (bezt->f2 & SELECT) {
mirror_bezier_yaxis_ex(bezt, 0.0f);
/* Yes, names are inverted, we are mirroring accross y axis, hence along x axis... */
mirror_bezier_xaxis_ex(bezt, 0.0f);
}
return 0;
@ -794,7 +795,8 @@ static short mirror_bezier_yaxis(KeyframeEditData *UNUSED(ked), BezTriple *bezt)
static short mirror_bezier_xaxis(KeyframeEditData *UNUSED(ked), BezTriple *bezt)
{
if (bezt->f2 & SELECT) {
mirror_bezier_xaxis_ex(bezt, 0.0f);
/* Yes, names are inverted, we are mirroring accross x axis, hence along y axis... */
mirror_bezier_yaxis_ex(bezt, 0.0f);
}
return 0;
@ -814,7 +816,7 @@ static short mirror_bezier_value(KeyframeEditData *ked, BezTriple *bezt)
{
/* value to mirror over is stored in the custom data -> first float value slot */
if (bezt->f2 & SELECT) {
mirror_bezier_xaxis_ex(bezt, ked->f1);
mirror_bezier_yaxis_ex(bezt, ked->f1);
}
return 0;