forked from bartvdbraak/blender
Code cleanup: more int->bool conversions mask module
This commit is contained in:
parent
8f747c4923
commit
bc5218a0f4
@ -90,7 +90,7 @@ float BKE_mask_spline_project_co(struct MaskSpline *spline, struct MaskSplinePoi
|
||||
/* point */
|
||||
int BKE_mask_point_has_handle(struct MaskSplinePoint *point);
|
||||
void BKE_mask_point_handle(struct MaskSplinePoint *point, float handle[2]);
|
||||
void BKE_mask_point_set_handle(struct MaskSplinePoint *point, float loc[2], int keep_direction,
|
||||
void BKE_mask_point_set_handle(struct MaskSplinePoint *point, float loc[2], bool keep_direction,
|
||||
float orig_handle[2], float orig_vec[3][3]);
|
||||
|
||||
void BKE_mask_point_segment_co(struct MaskSpline *spline, struct MaskSplinePoint *point, float u, float co[2]);
|
||||
|
@ -462,7 +462,7 @@ void BKE_mask_point_handle(MaskSplinePoint *point, float handle[2])
|
||||
handle[1] = (point->bezt.vec[1][1] - vec[0]);
|
||||
}
|
||||
|
||||
void BKE_mask_point_set_handle(MaskSplinePoint *point, float loc[2], int keep_direction,
|
||||
void BKE_mask_point_set_handle(MaskSplinePoint *point, float loc[2], bool keep_direction,
|
||||
float orig_handle[2], float orig_vec[3][3])
|
||||
{
|
||||
BezTriple *bezt = &point->bezt;
|
||||
|
@ -6824,8 +6824,11 @@ void flushTransMasking(TransInfo *t)
|
||||
td->loc2d[1] = td->loc[1] * inv[1];
|
||||
mul_m3_v2(tdm->parent_inverse_matrix, td->loc2d);
|
||||
|
||||
if (tdm->is_handle)
|
||||
BKE_mask_point_set_handle(tdm->point, td->loc2d, t->flag & T_ALT_TRANSFORM, tdm->orig_handle, tdm->vec);
|
||||
if (tdm->is_handle) {
|
||||
BKE_mask_point_set_handle(tdm->point, td->loc2d,
|
||||
(t->flag & T_ALT_TRANSFORM) != 0,
|
||||
tdm->orig_handle, tdm->vec);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user