summaryrefslogtreecommitdiff
path: root/core/variant/variant_utility.cpp
diff options
context:
space:
mode:
authorXpertice <henryjones@programmer.net>2022-10-21 14:59:27 -0400
committerHenryClones <30604707+HenryClones@users.noreply.github.com>2022-11-22 22:37:22 -0500
commit3e36cc7c7342213628a462c5d0ee2f330c283b4c (patch)
treec4a06f906e29644661813a05c46f8549078996a9 /core/variant/variant_utility.cpp
parente73ff0e961da2b57f4ff63185c0929cc222c7372 (diff)
Add case for Variant::INT in lerp variant switch
Diffstat (limited to 'core/variant/variant_utility.cpp')
-rw-r--r--core/variant/variant_utility.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/variant/variant_utility.cpp b/core/variant/variant_utility.cpp
index 3843c32bcc..f274b80729 100644
--- a/core/variant/variant_utility.cpp
+++ b/core/variant/variant_utility.cpp
@@ -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;