Skip to content

Commit

Permalink
Merge pull request #1001 from Faless/ext/basis_abs
Browse files Browse the repository at this point in the history
Fix Basis::scaled_orthogonal using incorrect abs function.
  • Loading branch information
Faless authored Jan 19, 2023
2 parents 3d74e66 + 72a7c61 commit 69b5254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/variant/basis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 69b5254

Please sign in to comment.