diff options
Diffstat (limited to 'source/blender/collada/BCAnimationCurve.cpp')
-rw-r--r-- | source/blender/collada/BCAnimationCurve.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/collada/BCAnimationCurve.cpp b/source/blender/collada/BCAnimationCurve.cpp index b494c749fe3..bf32ec9148c 100644 --- a/source/blender/collada/BCAnimationCurve.cpp +++ b/source/blender/collada/BCAnimationCurve.cpp @@ -249,7 +249,7 @@ const int BCAnimationCurve::closest_index_below(const float sample_frame) const int lower_index = 0; int upper_index = 0; - for (int fcu_index = 0; fcu_index < fcurve->totvert; ++fcu_index) { + for (int fcu_index = 0; fcu_index < fcurve->totvert; fcu_index++) { upper_index = fcu_index; const int cframe = fcurve->bezt[fcu_index].vec[1][0]; // inacurate! @@ -537,7 +537,7 @@ bool BCAnimationCurve::is_keyframe(int frame) return false; } - for (int i = 0; i < fcurve->totvert; ++i) { + for (int i = 0; i < fcurve->totvert; i++) { const int cframe = nearbyint(fcurve->bezt[i].vec[1][0]); if (cframe == frame) { return true; |