diff --git a/core/variant/variant_op.cpp b/core/variant/variant_op.cpp index 8574b2aa6..de915a8ba 100644 --- a/core/variant/variant_op.cpp +++ b/core/variant/variant_op.cpp @@ -5538,12 +5538,11 @@ void Variant::interpolate(const Variant &a, const Variant &b, float c, Variant & } return; case VECTOR4: { - r_dst = reinterpret_cast(a._data._mem)->lerp(*reinterpret_cast(b._data._mem), c); + r_dst = reinterpret_cast(a._data._mem)->linear_interpolate(*reinterpret_cast(b._data._mem), c); } return; case VECTOR4I: { - //r_dst = reinterpret_cast(a._data._mem)->lerp(*reinterpret_cast(b._data._mem), c); - r_dst = a; + r_dst = reinterpret_cast(a._data._mem)->linear_interpolate(*reinterpret_cast(b._data._mem), c); } return; case PLANE: {