diff options
| author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-01-19 10:16:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-19 10:16:51 +0100 |
| commit | 69b525494bf41097edc86d44b1d4b11ddfeb2440 (patch) | |
| tree | df251443d349f832477854d9ddcf952ace64af36 /src/variant | |
| parent | 3d74e661b77dfaf701da29a3c1ca376043b40381 (diff) | |
| parent | 72a7c61750b772042702ccc12cd733e55029867b (diff) | |
| download | redot-cpp-69b525494bf41097edc86d44b1d4b11ddfeb2440.tar.gz | |
Merge pull request #1001 from Faless/ext/basis_abs
Fix Basis::scaled_orthogonal using incorrect abs function.
Diffstat (limited to 'src/variant')
| -rw-r--r-- | src/variant/basis.cpp | 2 |
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); |
