Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-01-09 11:00:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-09 11:07:14 +0300
commite718004edf3fc335d686cc2a0291f1f0df4eba32 (patch)
tree97416aa6724970fc430ece20940bd855fdcce6ed /source/blender/editors/armature
parent246efd7286f6187e4dd4b3edcc79cccb1746bb1d (diff)
Cleanup: use bool arguments & variables
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/pose_slide.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/armature/pose_slide.c b/source/blender/editors/armature/pose_slide.c
index 3781b2e318b..4b646bb26e2 100644
--- a/source/blender/editors/armature/pose_slide.c
+++ b/source/blender/editors/armature/pose_slide.c
@@ -1779,7 +1779,7 @@ static void pose_propagate_fcurve(
float refVal = 0.0f;
bool keyExists;
int i, match;
- short first = 1;
+ bool first = true;
/* skip if no keyframes to edit */
if ((fcu->bezt == NULL) || (fcu->totvert < 2)) {
@@ -1826,7 +1826,7 @@ static void pose_propagate_fcurve(
}
else if (mode == POSE_PROPAGATE_NEXT_KEY) {
/* stop after the first keyframe has been processed */
- if (first == 0) {
+ if (first == false) {
break;
}
}
@@ -1865,7 +1865,7 @@ static void pose_propagate_fcurve(
/* select keyframe to indicate that it's been changed */
bezt->f2 |= SELECT;
- first = 0;
+ first = false;
}
}