diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-03 17:14:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-03 17:18:06 +0300 |
commit | 647c26c5ce77eb36ce37505bb8deaee2004f1f4c (patch) | |
tree | bde25eb01c56901511faff3356dd29bd063f8836 /source/blender/blenkernel/intern/key.c | |
parent | 216ddcc09bde3e06cc35a97f0831a1a0df320a52 (diff) |
DNA: rename BezTriple alfa to tilt
Diffstat (limited to 'source/blender/blenkernel/intern/key.c')
-rw-r--r-- | source/blender/blenkernel/intern/key.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/key.c b/source/blender/blenkernel/intern/key.c index f85f0052c61..f85964f76bc 100644 --- a/source/blender/blenkernel/intern/key.c +++ b/source/blender/blenkernel/intern/key.c @@ -1688,7 +1688,7 @@ void BKE_keyblock_update_from_curve(Curve *UNUSED(cu), KeyBlock *kb, ListBase *n for (int i = 0; i < 3; i++) { copy_v3_v3(&fp[i * 3], bezt->vec[i]); } - fp[9] = bezt->alfa; + fp[9] = bezt->tilt; fp[10] = bezt->radius; fp += KEYELEM_FLOAT_LEN_BEZTRIPLE; } @@ -1696,7 +1696,7 @@ void BKE_keyblock_update_from_curve(Curve *UNUSED(cu), KeyBlock *kb, ListBase *n else { for (a = nu->pntsu * nu->pntsv, bp = nu->bp; a; a--, bp++) { copy_v3_v3(fp, bp->vec); - fp[3] = bp->alfa; + fp[3] = bp->tilt; fp[4] = bp->radius; fp += KEYELEM_FLOAT_LEN_BPOINT; } @@ -1738,7 +1738,7 @@ void BKE_keyblock_convert_to_curve(KeyBlock *kb, Curve *UNUSED(cu), ListBase *nu for (int i = 0; i < 3; i++) { copy_v3_v3(bezt->vec[i], &fp[i * 3]); } - bezt->alfa = fp[9]; + bezt->tilt = fp[9]; bezt->radius = fp[10]; fp += KEYELEM_FLOAT_LEN_BEZTRIPLE; } @@ -1746,7 +1746,7 @@ void BKE_keyblock_convert_to_curve(KeyBlock *kb, Curve *UNUSED(cu), ListBase *nu else { for (a = nu->pntsu * nu->pntsv, bp = nu->bp; a && (tot -= KEYELEM_ELEM_LEN_BPOINT) >= 0; a--, bp++) { copy_v3_v3(bp->vec, fp); - bp->alfa = fp[3]; + bp->tilt = fp[3]; bp->radius = fp[4]; fp += KEYELEM_FLOAT_LEN_BPOINT; } |