Cleanup: use const array arguments
This commit is contained in:
@@ -68,13 +68,13 @@ void BKE_crazyspace_api_eval(struct Depsgraph *depsgraph,
|
||||
void BKE_crazyspace_api_displacement_to_deformed(struct Object *object,
|
||||
struct ReportList *reports,
|
||||
int vertex_index,
|
||||
float displacement[3],
|
||||
const float displacement[3],
|
||||
float r_displacement_deformed[3]);
|
||||
|
||||
void BKE_crazyspace_api_displacement_to_original(struct Object *object,
|
||||
struct ReportList *reports,
|
||||
int vertex_index,
|
||||
float displacement_deformed[3],
|
||||
const float displacement_deformed[3],
|
||||
float r_displacement[3]);
|
||||
|
||||
void BKE_crazyspace_api_eval_clear(struct Object *object);
|
||||
|
||||
@@ -554,7 +554,7 @@ void BKE_crazyspace_api_eval(Depsgraph *depsgraph,
|
||||
void BKE_crazyspace_api_displacement_to_deformed(Object *object,
|
||||
ReportList *reports,
|
||||
int vertex_index,
|
||||
float displacement[3],
|
||||
const float displacement[3],
|
||||
float r_displacement_deformed[3])
|
||||
{
|
||||
if (vertex_index < 0 || vertex_index >= object->runtime.crazyspace_verts_num) {
|
||||
@@ -574,7 +574,7 @@ void BKE_crazyspace_api_displacement_to_deformed(Object *object,
|
||||
void BKE_crazyspace_api_displacement_to_original(Object *object,
|
||||
ReportList *reports,
|
||||
int vertex_index,
|
||||
float displacement_deformed[3],
|
||||
const float displacement_deformed[3],
|
||||
float r_displacement[3])
|
||||
{
|
||||
if (vertex_index < 0 || vertex_index >= object->runtime.crazyspace_verts_num) {
|
||||
|
||||
@@ -78,19 +78,19 @@ static void ed_gizmo_draw_preset_geometry(const wmGizmo *gz,
|
||||
}
|
||||
}
|
||||
|
||||
void ED_gizmo_draw_preset_box(const wmGizmo *gz, float mat[4][4], int select_id)
|
||||
void ED_gizmo_draw_preset_box(const wmGizmo *gz, const float mat[4][4], int select_id)
|
||||
{
|
||||
ed_gizmo_draw_preset_geometry(gz, mat, select_id, &wm_gizmo_geom_data_cube);
|
||||
}
|
||||
|
||||
void ED_gizmo_draw_preset_arrow(const wmGizmo *gz, float mat[4][4], int axis, int select_id)
|
||||
void ED_gizmo_draw_preset_arrow(const wmGizmo *gz, const float mat[4][4], int axis, int select_id)
|
||||
{
|
||||
float mat_rotate[4][4];
|
||||
single_axis_convert(OB_POSZ, mat, axis, mat_rotate);
|
||||
ed_gizmo_draw_preset_geometry(gz, mat_rotate, select_id, &wm_gizmo_geom_data_arrow);
|
||||
}
|
||||
|
||||
void ED_gizmo_draw_preset_circle(const wmGizmo *gz, float mat[4][4], int axis, int select_id)
|
||||
void ED_gizmo_draw_preset_circle(const wmGizmo *gz, const float mat[4][4], int axis, int select_id)
|
||||
{
|
||||
float mat_rotate[4][4];
|
||||
single_axis_convert(OB_POSZ, mat, axis, mat_rotate);
|
||||
|
||||
@@ -43,13 +43,13 @@ struct wmGizmo;
|
||||
|
||||
/* `gizmo_library_presets.cc` */
|
||||
|
||||
void ED_gizmo_draw_preset_box(const struct wmGizmo *gz, float mat[4][4], int select_id);
|
||||
void ED_gizmo_draw_preset_box(const struct wmGizmo *gz, const float mat[4][4], int select_id);
|
||||
void ED_gizmo_draw_preset_arrow(const struct wmGizmo *gz,
|
||||
float mat[4][4],
|
||||
const float mat[4][4],
|
||||
int axis,
|
||||
int select_id);
|
||||
void ED_gizmo_draw_preset_circle(const struct wmGizmo *gz,
|
||||
float mat[4][4],
|
||||
const float mat[4][4],
|
||||
int axis,
|
||||
int select_id);
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ typedef struct TexResult {
|
||||
* Use it for stuff which is out of render pipeline.
|
||||
*/
|
||||
int multitex_ext(struct Tex *tex,
|
||||
float texvec[3],
|
||||
const float texvec[3],
|
||||
float dxt[3],
|
||||
float dyt[3],
|
||||
int osatex,
|
||||
|
||||
@@ -1166,7 +1166,7 @@ int multitex_nodes(Tex *tex,
|
||||
}
|
||||
|
||||
int multitex_ext(Tex *tex,
|
||||
float texvec[3],
|
||||
const float texvec[3],
|
||||
float dxt[3],
|
||||
float dyt[3],
|
||||
int osatex,
|
||||
|
||||
Reference in New Issue
Block a user