diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 19:04:40 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 19:18:16 +0300 |
commit | d2db481dc70bba7b5ca2c3bf01e8748155fcefad (patch) | |
tree | c587f36b76c075bd3ecb4be48104fe1ce82d5e15 /source/blender/blenkernel/intern/armature_update.c | |
parent | a21cb22f8b12ea73937e7e6eda8465f1cba02b6e (diff) |
Cleanup: Blendkernel, Clang-Tidy else-after-return fixes (incomplete)
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/blenkernel` module. Not all warnings are
addressed in this commit.
No functional changes.
Diffstat (limited to 'source/blender/blenkernel/intern/armature_update.c')
-rw-r--r-- | source/blender/blenkernel/intern/armature_update.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/armature_update.c b/source/blender/blenkernel/intern/armature_update.c index d0a5e4348b9..d66991aed70 100644 --- a/source/blender/blenkernel/intern/armature_update.c +++ b/source/blender/blenkernel/intern/armature_update.c @@ -119,9 +119,8 @@ static void splineik_init_tree_from_pchan(Scene *UNUSED(scene), if (segcount == 0) { return; } - else { - pchanRoot = pchanChain[segcount - 1]; - } + + pchanRoot = pchanChain[segcount - 1]; /* perform binding step if required */ if ((ikData->flag & CONSTRAINT_SPLINEIK_BOUND) == 0) { @@ -717,7 +716,7 @@ void BKE_pose_constraints_evaluate(struct Depsgraph *depsgraph, if (armature->flag & ARM_RESTPOS) { return; } - else if (pchan->flag & POSE_IKTREE || pchan->flag & POSE_IKSPLINE) { + if (pchan->flag & POSE_IKTREE || pchan->flag & POSE_IKSPLINE) { /* IK are being solved separately/ */ } else { |