diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-03-31 10:22:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-03-31 10:22:25 +0400 |
commit | 97af551cb738a6c27bd53acdffd0eba04470f8c6 (patch) | |
tree | 61028bac47ddb5df46c3652eaa0e45b3c15d407f /source/blender/blenkernel/BKE_curve.h | |
parent | 22ad99783a811e60ee75288c6864331c4be26b4d (diff) |
[#18439] Controlling the bevel shape for a text object with a curve no longer works.
own fault, broke rev16702.
Curves created by fonts didnt have their radius set. Forgot do do this when making radius calculated with the curve (like tilt)
Diffstat (limited to 'source/blender/blenkernel/BKE_curve.h')
-rw-r--r-- | source/blender/blenkernel/BKE_curve.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_curve.h b/source/blender/blenkernel/BKE_curve.h index a6619958797..a8d4ece7a21 100644 --- a/source/blender/blenkernel/BKE_curve.h +++ b/source/blender/blenkernel/BKE_curve.h @@ -46,6 +46,10 @@ struct BevList; #define SEGMENTSU(nu) ( ((nu)->flagu & CU_CYCLIC) ? (nu)->pntsu : (nu)->pntsu-1 ) #define SEGMENTSV(nu) ( ((nu)->flagv & CU_CYCLIC) ? (nu)->pntsv : (nu)->pntsv-1 ) +#define CU_DO_TILT(cu, nu) (((nu->type & CU_2D) && (cu->flag & CU_3D)==0) ? 0 : 1) +#define CU_DO_RADIUS(cu, nu) ((CU_DO_TILT(cu, nu) || cu->bevobj) ? 1:0) + + void unlink_curve( struct Curve *cu); void free_curve( struct Curve *cu); struct Curve *add_curve(char *name, int type); |