Made Nurb->type only store the type rather then mixing the type with flags.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 8 Sep 2009 00:23:33 +0000 (00:23 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 8 Sep 2009 00:23:33 +0000 (00:23 +0000)
commit8b6b31b41fc6ed07036ea30153131e6824fc7c7e
tree6e4afbce04f039584cdeea49d3dba3b80b0c822b
parent0ab2f675c364f2ca1212b0453bf2ffdce5ebb9ea
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.
20 files changed:
source/blender/blenkernel/BKE_curve.h
source/blender/blenkernel/intern/anim.c
source/blender/blenkernel/intern/curve.c
source/blender/blenkernel/intern/displist.c
source/blender/blenkernel/intern/font.c
source/blender/blenkernel/intern/object.c
source/blender/blenlib/intern/freetypefont.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/editors/curve/editcurve.c
source/blender/editors/object/object_edit.c
source/blender/editors/space_info/info_stats.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_buttons.c
source/blender/editors/space_view3d/view3d_snap.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_manipulator.c
source/blender/editors/transform/transform_orientations.c
source/blender/makesdna/DNA_curve_types.h
source/blender/makesrna/intern/rna_curve.c