diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-09-12 18:12:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-09-12 18:12:37 +0400 |
commit | d16bde417fb985eb348cdbf2314e324fa9d098a9 (patch) | |
tree | 325609eb67279cb6dfee7db1d89462e87960b956 /source/blender/makesdna/DNA_curve_types.h | |
parent | 3f9d3b2a0b61fee0b51b3b867033b5488c17cc35 (diff) |
new struct PathPoint for each path element (replaces float[4]), Paths now store radius and quaternion
Added optional quat and radius args to anim.c's where_on_path(...), currently unused.
also cleanup some warnings.
Diffstat (limited to 'source/blender/makesdna/DNA_curve_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_curve_types.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_curve_types.h b/source/blender/makesdna/DNA_curve_types.h index 013491187ae..8473f91a7f7 100644 --- a/source/blender/makesdna/DNA_curve_types.h +++ b/source/blender/makesdna/DNA_curve_types.h @@ -52,9 +52,18 @@ struct EditFont; /* These two Lines with # tell makesdna this struct can be excluded. */ # # +typedef struct PathPoint { + float vec[4]; /* grr, cant get rid of tilt yet */ + float quat[4]; + float radius; +} PathPoint; + +/* These two Lines with # tell makesdna this struct can be excluded. */ +# +# typedef struct Path { int len; - float *data; + struct PathPoint *data; float totdist; } Path; |