diff options
author | punto- <ariel@godotengine.org> | 2016-05-17 13:27:49 -0300 |
---|---|---|
committer | punto- <ariel@godotengine.org> | 2016-05-17 13:27:49 -0300 |
commit | 433de90564ed76c4069f5fb0193136bf34894847 (patch) | |
tree | 2f5d10707b613cbf0b4ebf9360716479c6966fb9 /core | |
parent | 8cb2e1be1b7ffb6a3a5de93b67373f1736beb2da (diff) |
Removing round from int interpolation
This might break some animations that use int tracks in continuous mode, but it should provide a more uniform interpolation for things like sprite frames.
Diffstat (limited to 'core')
-rw-r--r-- | core/variant_op.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant_op.cpp b/core/variant_op.cpp index f03ab43fce..a9cc37168d 100644 --- a/core/variant_op.cpp +++ b/core/variant_op.cpp @@ -3513,7 +3513,7 @@ void Variant::interpolate(const Variant& a, const Variant& b, float c,Variant &r case INT:{ int va=a._data._int; int vb=b._data._int; - r_dst=int((1.0-c) * va + vb * c + 0.5); + r_dst=int((1.0-c) * va + vb * c); } return; case REAL:{ real_t va=a._data._real; |