diff options
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 { |