Cleanup: const args for curve handle calculation

This commit is contained in:
2016-02-25 11:02:46 +11:00
parent 20b4477cff
commit 837c4c5d47
2 changed files with 15 additions and 11 deletions

View File

@@ -3120,14 +3120,17 @@ void BKE_curve_bevelList_make(Object *ob, ListBase *nurbs, bool for_render)
/* ****************** HANDLES ************** */
static void calchandleNurb_intern(BezTriple *bezt, BezTriple *prev, BezTriple *next,
bool is_fcurve, bool skip_align)
static void calchandleNurb_intern(
BezTriple *bezt, const BezTriple *prev, const BezTriple *next,
bool is_fcurve, bool skip_align)
{
/* defines to avoid confusion */
#define p2_h1 ((p2) - 3)
#define p2_h2 ((p2) + 3)
float *p1, *p2, *p3, pt[3];
const float *p1, *p3;
float *p2;
float pt[3];
float dvec_a[3], dvec_b[3];
float len, len_a, len_b;
float len_ratio;