diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-26 07:23:52 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-26 07:23:52 +0300 |
commit | 34477bbfcde34d0b27f04eccdddd0a093d8be1c0 (patch) | |
tree | de6f4349f103671e0f1f9b459c0064cd0ce7a344 /source/blender/editors/sculpt_paint | |
parent | 6275541df7e02c40e8c8650bba3104b5df8d34ef (diff) |
Cleanup: remove redundant parenthesis
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_proj.c | 2 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index bae5050f0ac..1eae5550703 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -4173,7 +4173,7 @@ static bool project_paint_check_face_sel(const ProjPaintState *ps, int orig_index; if ((face_lookup->index_mp_to_orig != NULL) && - (((orig_index = (face_lookup->index_mp_to_orig[lt->poly]))) != ORIGINDEX_NONE)) { + ((orig_index = (face_lookup->index_mp_to_orig[lt->poly])) != ORIGINDEX_NONE)) { return face_lookup->select_poly_orig && face_lookup->select_poly_orig[orig_index]; } return ps->select_poly_eval && ps->select_poly_eval[lt->poly]; diff --git a/source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c b/source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c index 22346434ed5..9ab36fe1402 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c +++ b/source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c @@ -258,7 +258,7 @@ BLI_INLINE float wval_exclusion(float weight, float paintval, float fac) return weight; } mfac = 1.0f - fac; - temp = 0.5f - ((2.0f * (weight - 0.5f) * (paintval - 0.5f))); + temp = 0.5f - (2.0f * (weight - 0.5f) * (paintval - 0.5f)); return temp * fac + weight * mfac; } |