Blender Git Commit Log

Git Commits -> Revision 1278890

Revision 1278890 by Alexander Gavrilov (master)
September 20, 2018, 08:52 (GMT)
Put the Radius property of Curve points under shape key control.

Since shape keys are stored as raw floating point data, this
unfortunately requires changes to all code that works with it.

An additional complication is that bezier and nurbs control
points have different entry size, and can be mixed in the same
object (and hence shape key buffer).

Shape key entries are changed from:

bezier: float v1[3], v2[3], v3[3], tilt, pad, pad;
nurbs: float vec[3], tilt;

To:

bezier: float v1[3], v2[3], v3[3], tilt, radius, pad;
nurbs: float vec[3], tilt, radius, pad;

The official shape key element size is changed to 3 floats,
with 4 elements for bezier nodes, and 2 for nurbs. This also
means that the element count is not equal to the vertex count
anymore.

While searching for all curve Shape Key code, I also found that
BKE_curve_transform_ex and BKE_curve_translate were broken. This
can be seen by trying to change the Origin of a Curve with keys.

Reviewers: campbellbarton, sergey

Differential Revision: https://developer.blender.org/D3676

Commit Details:

Full Hash: 12788906113c4f2b304b368001bd2ef68c4dc6b8
Parent Commit: 1789c1e
Lines Changed: +288, -162

8 Modified Paths:

/source/blender/blenkernel/BKE_blender_version.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_key.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/curve.c (+52, -16) (Diff)
/source/blender/blenkernel/intern/displist.c (+5, -3) (Diff)
/source/blender/blenkernel/intern/key.c (+104, -107) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+70, -0) (Diff)
/source/blender/editors/curve/editcurve.c (+44, -35) (Diff)
/source/blender/makesdna/DNA_key_types.h (+11, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021