diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-04-08 11:03:37 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-04-08 11:03:37 +0200 |
commit | 856a8226a5306632f5dd4d9e9c916d89e3e21495 (patch) | |
tree | f5ed5052dfc9d6793b78b2353ba84732676beb08 /scene/resources/curve.cpp | |
parent | c2c11fc063e723c41579e6307e40fd16ac5334c4 (diff) |
Small fixes, mostly dupicated code
Diffstat (limited to 'scene/resources/curve.cpp')
-rw-r--r-- | scene/resources/curve.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/curve.cpp b/scene/resources/curve.cpp index 464ca60d31..ece8ad4bb0 100644 --- a/scene/resources/curve.cpp +++ b/scene/resources/curve.cpp @@ -268,7 +268,7 @@ void Curve::update_auto_tangents(int i) { } if (i + 1 < _points.size()) { - if (p.right_mode == TANGENT_LINEAR && i + 1 < _points.size()) { + if (p.right_mode == TANGENT_LINEAR) { Vector2 v = (_points[i + 1].pos - p.pos).normalized(); p.right_tangent = v.y / v.x; } |