You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user