diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2021-01-12 16:57:55 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-01-12 19:32:53 +0100 |
commit | af878716f2620fb9142b960253dc82f60ab23df2 (patch) | |
tree | 6ad992cca541f89ef5dba3b687ba170b82ee6087 /core | |
parent | df257f4fb6f0eadd204b91396854eee5d72ebd9b (diff) |
CI: Update to clang-format 11 and apply ternary operator changes
Diffstat (limited to 'core')
-rw-r--r-- | core/math/basis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/basis.cpp b/core/math/basis.cpp index 26b4caba39..cbdd8a8c9f 100644 --- a/core/math/basis.cpp +++ b/core/math/basis.cpp @@ -790,8 +790,8 @@ Quat Basis::get_quat() const { temp[2] = ((m.elements[1][0] - m.elements[0][1]) * s); } else { int i = m.elements[0][0] < m.elements[1][1] ? - (m.elements[1][1] < m.elements[2][2] ? 2 : 1) : - (m.elements[0][0] < m.elements[2][2] ? 2 : 0); + (m.elements[1][1] < m.elements[2][2] ? 2 : 1) : + (m.elements[0][0] < m.elements[2][2] ? 2 : 0); int j = (i + 1) % 3; int k = (i + 2) % 3; |