Code Cleanup: use const
This commit is contained in:
parent
984d6c8677
commit
5e3e095e2e
Notes:
blender-bot
2023-02-14 10:22:26 +01:00
Referenced by issue #41133, Audio: Speakers with animated pitch cause clicks in rendered animations, crashes or huge filesizes in rendered audio Referenced by issue #41047, Textobjects - flipped letters ä and ü Referenced by issue #40981, Matcap with Clipping Border
|
@ -1108,7 +1108,7 @@ static void weightpaint_color(unsigned char r_col[4], DMWeightColorInfo *dm_wcin
|
|||
|
||||
static void calc_weightpaint_vert_color(
|
||||
unsigned char r_col[4],
|
||||
MDeformVert *dv,
|
||||
const MDeformVert *dv,
|
||||
DMWeightColorInfo *dm_wcinfo,
|
||||
const int defbase_tot, const int defbase_act,
|
||||
const bool *defbase_sel, const int defbase_sel_tot,
|
||||
|
@ -1123,7 +1123,7 @@ static void calc_weightpaint_vert_color(
|
|||
bool was_a_nonzero = false;
|
||||
unsigned int i;
|
||||
|
||||
MDeformWeight *dw = dv->dw;
|
||||
const MDeformWeight *dw = dv->dw;
|
||||
for (i = dv->totweight; i != 0; i--, dw++) {
|
||||
/* in multipaint, get the average if auto normalize is inactive
|
||||
* get the sum if it is active */
|
||||
|
|
|
@ -326,7 +326,7 @@ static void maskrasterize_spline_differentiate_point_outset(float (*diff_feather
|
|||
* are to any of the triangle edges.
|
||||
*/
|
||||
static bool layer_bucket_isect_test(
|
||||
MaskRasterLayer *layer, unsigned int face_index,
|
||||
const MaskRasterLayer *layer, unsigned int face_index,
|
||||
const unsigned int bucket_x, const unsigned int bucket_y,
|
||||
const float bucket_size_x, const float bucket_size_y,
|
||||
const float bucket_max_rad_squared)
|
||||
|
|
|
@ -112,7 +112,7 @@ static BLI_bitmap *multires_mdisps_upsample_hidden(BLI_bitmap *lo_hidden,
|
|||
|
||||
/* assumed to be at hi_level (or
|
||||
* null) */
|
||||
BLI_bitmap *prev_hidden)
|
||||
const BLI_bitmap *prev_hidden)
|
||||
{
|
||||
BLI_bitmap *subd;
|
||||
int hi_gridsize = BKE_ccg_gridsize(hi_level);
|
||||
|
|
|
@ -501,7 +501,7 @@ static void tracking_scale_marker_search(const MovieTrackingMarker *old_marker,
|
|||
static void tracking_insert_new_marker(MovieTrackingContext *context, MovieTrackingTrack *track,
|
||||
const MovieTrackingMarker *old_marker, int curfra, bool tracked,
|
||||
int frame_width, int frame_height,
|
||||
double dst_pixel_x[5], double dst_pixel_y[5])
|
||||
const double dst_pixel_x[5], const double dst_pixel_y[5])
|
||||
{
|
||||
MovieTrackingMarker new_marker;
|
||||
int frame_delta = context->backwards ? -1 : 1;
|
||||
|
|
|
@ -82,7 +82,7 @@ static bool stabilization_median_point_get(MovieTracking *tracking, int framenr,
|
|||
* NOTE: frame number should be in clip space, not scene space
|
||||
*/
|
||||
static void stabilization_calculate_data(MovieTracking *tracking, int framenr, int width, int height,
|
||||
float firstmedian[2], float median[2],
|
||||
const float firstmedian[2], const float median[2],
|
||||
float translation[2], float *scale, float *angle)
|
||||
{
|
||||
MovieTrackingStabilization *stab = &tracking->stabilization;
|
||||
|
|
|
@ -349,7 +349,7 @@ static void unit_dual_convert(double value, bUnitCollection *usys, bUnitDef **un
|
|||
|
||||
static size_t unit_as_string(char *str, int len_max, double value, int prec, bUnitCollection *usys,
|
||||
/* non exposed options */
|
||||
bUnitDef *unit, char pad)
|
||||
const bUnitDef *unit, char pad)
|
||||
{
|
||||
double value_conv;
|
||||
size_t len, i;
|
||||
|
|
|
@ -397,8 +397,8 @@ static float bm_loop_flip_equotion(float mat[2][2], float b[2], const float targ
|
|||
return mat[0][0] * mat[1][1] - mat[0][1] * mat[1][0];
|
||||
}
|
||||
|
||||
static void bm_loop_flip_disp(float source_axis_x[3], float source_axis_y[3],
|
||||
float target_axis_x[3], float target_axis_y[3], float disp[3])
|
||||
static void bm_loop_flip_disp(const float source_axis_x[3], const float source_axis_y[3],
|
||||
const float target_axis_x[3], const float target_axis_y[3], float disp[3])
|
||||
{
|
||||
float vx[3], vy[3], coord[3];
|
||||
float n[3], vec[3];
|
||||
|
|
Loading…
Reference in New Issue