mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix some issues found by cppcheck.
This commit is contained in:
parent
72407a9cfb
commit
f851c4aa33
163 changed files with 776 additions and 767 deletions
|
@ -146,11 +146,10 @@ void AnimationBezierTrackEdit::_draw_track(int p_track, const Color &p_color) {
|
|||
int iterations = 10;
|
||||
float low = 0;
|
||||
float high = 1;
|
||||
float middle;
|
||||
|
||||
//narrow high and low as much as possible
|
||||
for (int k = 0; k < iterations; k++) {
|
||||
middle = (low + high) / 2;
|
||||
float middle = (low + high) / 2;
|
||||
|
||||
Vector2 interp = _bezier_interp(middle, start, out_handle, in_handle, end);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue