From 433de90564ed76c4069f5fb0193136bf34894847 Mon Sep 17 00:00:00 2001 From: punto- Date: Tue, 17 May 2016 13:27:49 -0300 Subject: 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. --- core/variant_op.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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; -- cgit v1.2.3