1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

CI: Update to clang-format 11 and apply ternary operator changes

(cherry picked from commit af878716f2)
This commit is contained in:
Rémi Verschelde
2021-01-12 16:57:55 +01:00
parent ef683e761d
commit 188609e5ab
15 changed files with 41 additions and 39 deletions

View File

@@ -805,8 +805,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;