From 5e6df6a196ae1fabccbe8a2a4a97123594885652 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Wed, 16 Apr 2025 20:41:36 +0200 Subject: [PATCH] Use Math::abs to avoid ambiguity with integer abs --- core/math/basis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/math/basis.cpp b/core/math/basis.cpp index 191f8a6a22..c14f32bf9c 100644 --- a/core/math/basis.cpp +++ b/core/math/basis.cpp @@ -268,7 +268,7 @@ Basis Basis::scaled_orthogonal(const Vector3 &p_scale) const { Vector3 dots; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { - dots[j] += s[i] * abs(m.get_column(i).normalized().dot(b.get_column(j))); + dots[j] += s[i] * Math::abs(m.get_column(i).normalized().dot(b.get_column(j))); } } if (sign != signbit(dots.x + dots.y + dots.z)) {