mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-10 21:09:38 +01:00
Fix error, also add linear_interpolate call for Vector4i to variant op.
This commit is contained in:
parent
d19e6f11e9
commit
039f173de1
@ -5538,12 +5538,11 @@ void Variant::interpolate(const Variant &a, const Variant &b, float c, Variant &
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case VECTOR4: {
|
case VECTOR4: {
|
||||||
r_dst = reinterpret_cast<const Vector4 *>(a._data._mem)->lerp(*reinterpret_cast<const Vector4 *>(b._data._mem), c);
|
r_dst = reinterpret_cast<const Vector4 *>(a._data._mem)->linear_interpolate(*reinterpret_cast<const Vector4 *>(b._data._mem), c);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case VECTOR4I: {
|
case VECTOR4I: {
|
||||||
//r_dst = reinterpret_cast<const Vector4i *>(a._data._mem)->lerp(*reinterpret_cast<const Vector4i *>(b._data._mem), c);
|
r_dst = reinterpret_cast<const Vector4i *>(a._data._mem)->linear_interpolate(*reinterpret_cast<const Vector4i *>(b._data._mem), c);
|
||||||
r_dst = a;
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case PLANE: {
|
case PLANE: {
|
||||||
|
Loading…
Reference in New Issue
Block a user