mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-01 05:48:37 +03:00
Use Math::abs to avoid ambiguity with integer abs
(cherry picked from commit 7670de814f)
This commit is contained in:
committed by
David Snopek
parent
5dae002a5d
commit
6182a2728b
@@ -272,7 +272,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 != std::signbit(dots.x + dots.y + dots.z)) {
|
||||
|
||||
Reference in New Issue
Block a user