Cleanup: clang-format

This commit is contained in:
Lukas Stockner 2022-10-22 18:32:06 +02:00
parent 21fdb0d92b
commit afec1cd333
2 changed files with 6 additions and 5 deletions

View File

@ -1731,7 +1731,8 @@ static void initSnapSpatial(TransInfo *t, float r_snap[3], float *r_snap_precisi
if (t->spacetype == SPACE_VIEW3D) {
if (t->region->regiondata) {
View3D *v3d = t->area->spacedata.first;
r_snap[0] = r_snap[1] = r_snap[2] = ED_view3d_grid_view_scale(t->scene, v3d, t->region, NULL);
r_snap[0] = r_snap[1] = r_snap[2] = ED_view3d_grid_view_scale(
t->scene, v3d, t->region, NULL);
}
}
else if (t->spacetype == SPACE_IMAGE) {

View File

@ -370,10 +370,10 @@ static void translate_snap_target_grid_ensure(TransInfo *t)
}
static void translate_snap_grid_apply(TransInfo *t,
const int max_index,
const float grid_dist[3],
const float loc[3],
float r_out[3])
const int max_index,
const float grid_dist[3],
const float loc[3],
float r_out[3])
{
BLI_assert(max_index <= 2);
translate_snap_target_grid_ensure(t);