Fix some issues found by cppcheck.
This commit is contained in:
parent
72407a9cfb
commit
f851c4aa33
163 changed files with 776 additions and 767 deletions
|
|
@ -3428,7 +3428,6 @@ real_t Animation::bezier_track_interpolate(int p_track, double p_time) const {
|
|||
real_t duration = bt->values[idx + 1].time - bt->values[idx].time; // time duration between our two keyframes
|
||||
real_t low = 0.0; // 0% of the current animation segment
|
||||
real_t high = 1.0; // 100% of the current animation segment
|
||||
real_t middle;
|
||||
|
||||
Vector2 start(0, bt->values[idx].value.value);
|
||||
Vector2 start_out = start + bt->values[idx].value.out_handle;
|
||||
|
|
@ -3437,7 +3436,7 @@ real_t Animation::bezier_track_interpolate(int p_track, double p_time) const {
|
|||
|
||||
//narrow high and low as much as possible
|
||||
for (int i = 0; i < iterations; i++) {
|
||||
middle = (low + high) / 2;
|
||||
real_t middle = (low + high) / 2;
|
||||
|
||||
Vector2 interp = _bezier_interp(middle, start, start_out, end_in, end);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue