1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Add case for Variant::INT in lerp variant switch

This commit is contained in:
Xpertice
2022-10-21 14:59:27 -04:00
committed by HenryClones
parent e73ff0e961
commit 3e36cc7c73
2 changed files with 4 additions and 1 deletions

View File

@@ -335,6 +335,9 @@ struct VariantUtilityFunctions {
}
switch (from.get_type()) {
case Variant::INT: {
return lerpf(VariantInternalAccessor<int64_t>::get(&from), to, weight);
} break;
case Variant::FLOAT: {
return lerpf(VariantInternalAccessor<double>::get(&from), to, weight);
} break;