summaryrefslogtreecommitdiffstats
path: root/src/variant/basis.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-01-19 02:53:53 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-01-19 02:53:53 +0100
commit72a7c61750b772042702ccc12cd733e55029867b (patch)
tree81c1b536b07da22bd5a6fd886d7574aae339867f /src/variant/basis.cpp
parentcf3d995e8cb477a09dcbcf59c1cc8410b4b071fe (diff)
downloadredot-cpp-72a7c61750b772042702ccc12cd733e55029867b.tar.gz
Fix Basis::scaled_orthogonal using incorrect abs function.
Diffstat (limited to 'src/variant/basis.cpp')
-rw-r--r--src/variant/basis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/variant/basis.cpp b/src/variant/basis.cpp
index 2e8db7a..8f78d9f 100644
--- a/src/variant/basis.cpp
+++ b/src/variant/basis.cpp
@@ -261,7 +261,7 @@ Basis Basis::scaled_orthogonal(const Vector3 &p_scale) const {
Basis b;
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)));
}
}
m.scale_local(Vector3(1, 1, 1) + dots);