Cleanup: style

This commit is contained in:
2018-11-21 05:25:42 +11:00
parent ec908beab3
commit 5aa728ec7e
3 changed files with 7 additions and 7 deletions

View File

@@ -1990,7 +1990,7 @@ static void mesh_build_extra_data(struct Depsgraph *depsgraph, Object *ob)
}
}
static void mesh_runtime_check_normals_valid(const Mesh* mesh)
static void mesh_runtime_check_normals_valid(const Mesh *mesh)
{
UNUSED_VARS_NDEBUG(mesh);
BLI_assert(!(mesh->runtime.cd_dirty_vert & CD_MASK_NORMAL));

View File

@@ -637,7 +637,7 @@ static void studiolight_spherical_harmonics_apply_band_factors(StudioLight *sl,
int index = 0, dst_idx = 0;
for (int band = 0; band < STUDIOLIGHT_SH_BANDS; band++) {
for (int m = 0; m < SQUARE(band+1) - SQUARE(band); m++) {
for (int m = 0; m < SQUARE(band + 1) - SQUARE(band); m++) {
/* Skip L3 */
if (band != 3) {
mul_v3_v3fl(sl->spherical_harmonics_coefs[dst_idx++], sh[index], sl_sh_band_factors[band]);

View File

@@ -899,11 +899,11 @@ int ED_transform_calc_gizmo_stats(
totsel++;
}
if ((ebo->flag & BONE_ROOTSEL) &&
/* don't include same point multiple times */
((ebo->flag & BONE_CONNECTED) &&
(ebo->parent != NULL) &&
(ebo->parent->flag & BONE_TIPSEL) &&
EBONE_VISIBLE(arm, ebo->parent)) == 0)
/* don't include same point multiple times */
((ebo->flag & BONE_CONNECTED) &&
(ebo->parent != NULL) &&
(ebo->parent->flag & BONE_TIPSEL) &&
EBONE_VISIBLE(arm, ebo->parent)) == 0)
{
calc_tw_center_with_matrix(tbounds, ebo->head, use_mat_local, mat_local);
totsel++;