Code cleanup: synchronize const qualifiers between declaration and definition
This commit is contained in:
@@ -85,8 +85,8 @@ void BKE_curve_texspace_get(struct Curve *cu, float r_loc[3], float r_rot[3], fl
|
||||
bool BKE_curve_minmax(struct Curve *cu, bool use_radius, float min[3], float max[3]);
|
||||
bool BKE_curve_center_median(struct Curve *cu, float cent[3]);
|
||||
bool BKE_curve_center_bounds(struct Curve *cu, float cent[3]);
|
||||
void BKE_curve_transform_ex(struct Curve *cu, float mat[4][4], bool do_keys, const float unit_scale);
|
||||
void BKE_curve_transform(struct Curve *cu, float mat[4][4], bool do_keys);
|
||||
void BKE_curve_transform_ex(struct Curve *cu, float mat[4][4], const bool do_keys, const float unit_scale);
|
||||
void BKE_curve_transform(struct Curve *cu, float mat[4][4], const bool do_keys);
|
||||
void BKE_curve_translate(struct Curve *cu, float offset[3], const bool do_keys);
|
||||
void BKE_curve_material_index_remove(struct Curve *cu, int index);
|
||||
void BKE_curve_material_index_clear(struct Curve *cu);
|
||||
|
||||
@@ -4312,7 +4312,7 @@ bool BKE_curve_center_bounds(Curve *cu, float cent[3])
|
||||
}
|
||||
|
||||
|
||||
void BKE_curve_transform_ex(Curve *cu, float mat[4][4], bool do_keys, float unit_scale)
|
||||
void BKE_curve_transform_ex(Curve *cu, float mat[4][4], const bool do_keys, const float unit_scale)
|
||||
{
|
||||
Nurb *nu;
|
||||
BPoint *bp;
|
||||
@@ -4348,13 +4348,13 @@ void BKE_curve_transform_ex(Curve *cu, float mat[4][4], bool do_keys, float unit
|
||||
}
|
||||
}
|
||||
|
||||
void BKE_curve_transform(Curve *cu, float mat[4][4], bool do_keys)
|
||||
void BKE_curve_transform(Curve *cu, float mat[4][4], const bool do_keys)
|
||||
{
|
||||
float unit_scale = mat4_to_scale(mat);
|
||||
BKE_curve_transform_ex(cu, mat, do_keys, unit_scale);
|
||||
}
|
||||
|
||||
void BKE_curve_translate(Curve *cu, float offset[3], bool do_keys)
|
||||
void BKE_curve_translate(Curve *cu, float offset[3], const bool do_keys)
|
||||
{
|
||||
ListBase *nurb_lb = BKE_curve_nurbs_get(cu);
|
||||
Nurb *nu;
|
||||
|
||||
Reference in New Issue
Block a user