diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 17:09:51 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 17:15:01 +0300 |
commit | 2a39b34a09702e4e64e27befc97dd6154b75ccc0 (patch) | |
tree | 1a4cfc24b941dee5895b2dbd388c9cc453a31ce3 /source/blender/editors/sculpt_paint/sculpt_undo.c | |
parent | fd5b093f84845ab7adbe7e6e4dec4bbadbbc16af (diff) |
Cleanup: Editors/Sculpt/Paint, Clang-Tidy else-after-return fixes
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/editors/sculpt_paint` module.
No functional changes.
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_undo.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index 6ede631eb11..fd800ca2c18 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -167,9 +167,7 @@ static bool test_swap_v3_v3(float a[3], float b[3]) swap_v3_v3(a, b); return true; } - else { - return false; - } + return false; } static bool sculpt_undo_restore_deformed( @@ -179,9 +177,7 @@ static bool sculpt_undo_restore_deformed( copy_v3_v3(unode->co[uindex], ss->deform_cos[oindex]); return true; } - else { - return false; - } + return false; } static bool sculpt_undo_restore_coords(bContext *C, Depsgraph *depsgraph, SculptUndoNode *unode) @@ -1270,17 +1266,17 @@ SculptUndoNode *SCULPT_undo_push_node(Object *ob, PBVHNode *node, SculptUndoType BLI_thread_unlock(LOCK_CUSTOM1); return unode; } - else if (type == SCULPT_UNDO_GEOMETRY) { + if (type == SCULPT_UNDO_GEOMETRY) { unode = sculpt_undo_geometry_push(ob, type); BLI_thread_unlock(LOCK_CUSTOM1); return unode; } - else if (type == SCULPT_UNDO_FACE_SETS) { + if (type == SCULPT_UNDO_FACE_SETS) { unode = sculpt_undo_face_sets_push(ob, type); BLI_thread_unlock(LOCK_CUSTOM1); return unode; } - else if ((unode = SCULPT_undo_get_node(node))) { + if ((unode = SCULPT_undo_get_node(node))) { BLI_thread_unlock(LOCK_CUSTOM1); return unode; } |