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:
authorMatt Ebb <matt@mke3.net>2007-08-21 05:57:15 +0400
committerMatt Ebb <matt@mke3.net>2007-08-21 05:57:15 +0400
commit63a801c21d054381d4eccd186dfea0d96533cfb3 (patch)
treeb30df51e4d46bfa3b9f20a885bfc499d38d8541b /source/blender/makesdna/DNA_curve_types.h
parent798001556aed3dfec4b76c9525543560c7fbbbe0 (diff)
* Curve tilt interpolation types
Just a quickie feature I needed here at work- the previous linear interpolation of tilt in curves can give nasty pinching problems when trying to do flowing curves like a ribbon. This commit lets you choose the interpolation type, between Linear, Cardinal, and BSpline. The code was already set up for it pretty easily, mainly needed to make the choice visible to the user. Example: http://mke3.net/blender/devel/etc/tilt_interp_types.png Works on selected curve 'lines', menu in 'curve tools' panel in edit mode.
Diffstat (limited to 'source/blender/makesdna/DNA_curve_types.h')
-rw-r--r--source/blender/makesdna/DNA_curve_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_curve_types.h b/source/blender/makesdna/DNA_curve_types.h
index 8dc284888d7..bd772bbeecb 100644
--- a/source/blender/makesdna/DNA_curve_types.h
+++ b/source/blender/makesdna/DNA_curve_types.h
@@ -116,9 +116,11 @@ typedef struct Nurb {
float *knotsu, *knotsv;
BPoint *bp;
BezTriple *bezt;
+
+ short tilt_interp; /* KEY_LINEAR, KEY_CARDINAL, KEY_BSPLINE */
+ short pad;
int charidx;
- int pad;
} Nurb;
typedef struct CharInfo {