diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-11-25 23:39:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-11-25 23:39:14 +0400 |
commit | 63caaa2b12edf0e0a47764156416fac9d43d3664 (patch) | |
tree | 39d9455df141edc2f232240da34514b0468dcc28 /source/blender/editors/animation/keyframes_general.c | |
parent | 5928af11ef97d6d9318d3a06fe32f0d77fc48e9c (diff) |
Code Cleanup: rename vars for detecting change to be more consistent
rename change/is_change/is_changed/modified -> changed
also use bools over int/short/char and once accidental float.
Diffstat (limited to 'source/blender/editors/animation/keyframes_general.c')
-rw-r--r-- | source/blender/editors/animation/keyframes_general.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/animation/keyframes_general.c b/source/blender/editors/animation/keyframes_general.c index 15abdb452ce..481012bf411 100644 --- a/source/blender/editors/animation/keyframes_general.c +++ b/source/blender/editors/animation/keyframes_general.c @@ -107,7 +107,7 @@ void delete_fcurve_key(FCurve *fcu, int index, short do_recalc) bool delete_fcurve_keys(FCurve *fcu) { int i; - bool modified = false; + bool changed = false; if (fcu->bezt == NULL) /* ignore baked curves */ return false; @@ -118,7 +118,7 @@ bool delete_fcurve_keys(FCurve *fcu) memmove(&fcu->bezt[i], &fcu->bezt[i + 1], sizeof(BezTriple) * (fcu->totvert - i - 1)); fcu->totvert--; i--; - modified = true; + changed = true; } } @@ -126,7 +126,7 @@ bool delete_fcurve_keys(FCurve *fcu) if (fcu->totvert == 0) clear_fcurve_keys(fcu); - return modified; + return changed; } |