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:
authorCampbell Barton <ideasman42@gmail.com>2009-09-08 04:23:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-09-08 04:23:33 +0400
commit8b6b31b41fc6ed07036ea30153131e6824fc7c7e (patch)
tree6e4afbce04f039584cdeea49d3dba3b80b0c822b /source/blender/blenlib
parent0ab2f675c364f2ca1212b0453bf2ffdce5ebb9ea (diff)
Made Nurb->type only store the type rather then mixing the type with flags.
moved CU_2D to Nurb->flag in do_versions This made simple type checks confusing to read. many... if( (nu->type & 7)==CU_BEZIER) replaced with ... if(nu->type == CU_BEZIER) made setting rna curve_2d clamp the Z values. still more RNA/UI changes to do.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/freetypefont.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/freetypefont.c b/source/blender/blenlib/intern/freetypefont.c
index bde4b561f26..985700efda1 100644
--- a/source/blender/blenlib/intern/freetypefont.c
+++ b/source/blender/blenlib/intern/freetypefont.c
@@ -146,9 +146,10 @@ void freetypechar_to_vchar(FT_Face face, FT_ULong charcode, VFontData *vfd)
bezt = (BezTriple*)MEM_callocN((onpoints[j])* sizeof(BezTriple),"objfnt_bezt") ;
BLI_addtail(&che->nurbsbase, nu);
- nu->type= CU_BEZIER+CU_2D;
+ nu->type= CU_BEZIER;
nu->pntsu = onpoints[j];
nu->resolu= 8;
+ nu->flag= CU_2D;
nu->flagu= CU_CYCLIC;
nu->bezt = bezt;