fix for own bad mistake, broke vector curve handles.
This commit is contained in:
@@ -419,12 +419,10 @@ static void calchandle_curvemap(BezTriple *bezt, BezTriple *prev, BezTriple *nex
|
||||
}
|
||||
|
||||
if(bezt->h1==HD_VECT) { /* vector */
|
||||
mul_v2_fl(dvec_a, 1.0f/3.0f);
|
||||
sub_v2_v2v2(p2-3, p2, dvec_a);
|
||||
madd_v2_v2v2fl(p2-3, p2, dvec_a, -1.0f/3.0f);
|
||||
}
|
||||
if(bezt->h2==HD_VECT) {
|
||||
mul_v2_fl(dvec_b, 1.0f/3.0f);
|
||||
sub_v2_v2v2(p2+3, p2, dvec_b);
|
||||
madd_v2_v2v2fl(p2+3, p2, dvec_b, 1.0f/3.0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2595,12 +2595,10 @@ void calchandleNurb(BezTriple *bezt, BezTriple *prev, BezTriple *next, int mode)
|
||||
}
|
||||
|
||||
if(bezt->h1==HD_VECT) { /* vector */
|
||||
mul_v3_fl(dvec_a, 1.0f/3.0f);
|
||||
sub_v3_v3v3(p2-3, p2, dvec_a);
|
||||
madd_v3_v3v3fl(p2-3, p2, dvec_a, -1.0f/3.0f);
|
||||
}
|
||||
if(bezt->h2==HD_VECT) {
|
||||
mul_v3_fl(dvec_b, 1.0f/3.0f);
|
||||
sub_v3_v3v3(p2+3, p2, dvec_b);
|
||||
madd_v3_v3v3fl(p2+3, p2, dvec_b, 1.0f/3.0f);
|
||||
}
|
||||
|
||||
len_b= len_v3v3(p2, p2+3);
|
||||
|
||||
Reference in New Issue
Block a user