Cleanup: const args for curve handle calculation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user