summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/variant_op.cpp2
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;