summaryrefslogtreecommitdiffstats
path: root/scene/resources/animation.cpp
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-09-16 01:03:50 -0500
committerAaron Franke <arnfranke@yahoo.com>2021-12-09 09:52:48 -0600
commite9808e3d9a33c170d2b3863d8d24e630f9bda20f (patch)
tree6475c0b5c24cf918cad417d381cb75543d0870a1 /scene/resources/animation.cpp
parent012b2b53854f49b5bd4f60a2a056f71a3ccb2e1c (diff)
downloadredot-engine-e9808e3d9a33c170d2b3863d8d24e630f9bda20f.tar.gz
Add a double-precision editor build to CI
Diffstat (limited to 'scene/resources/animation.cpp')
-rw-r--r--scene/resources/animation.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/scene/resources/animation.cpp b/scene/resources/animation.cpp
index e3cf9183a0..255d0ececd 100644
--- a/scene/resources/animation.cpp
+++ b/scene/resources/animation.cpp
@@ -3998,13 +3998,12 @@ bool Animation::_blend_shape_track_optimize_key(const TKey<float> &t0, const TKe
float v1 = t1.value;
float v2 = t2.value;
- if (Math::is_equal_approx(v1, v2, p_allowed_unit_error)) {
+ if (Math::is_equal_approx(v1, v2, (float)p_allowed_unit_error)) {
//0 and 2 are close, let's see if 1 is close
- if (!Math::is_equal_approx(v0, v1, p_allowed_unit_error)) {
+ if (!Math::is_equal_approx(v0, v1, (float)p_allowed_unit_error)) {
//not close, not optimizable
return false;
}
-
} else {
/*
TODO eventually discuss a way to optimize these better.