mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Style: clang-format: Disable AllowShortIfStatementsOnASingleLine
Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
This commit is contained in:
parent
03b13e0c69
commit
e956e80c1f
130 changed files with 967 additions and 511 deletions
|
@ -61,13 +61,19 @@ Vector3 MobileVRInterface::scale_magneto(const Vector3 &p_magnetometer) {
|
|||
};
|
||||
|
||||
// adjust our min and max
|
||||
if (mag_raw.x > mag_next_max.x) mag_next_max.x = mag_raw.x;
|
||||
if (mag_raw.y > mag_next_max.y) mag_next_max.y = mag_raw.y;
|
||||
if (mag_raw.z > mag_next_max.z) mag_next_max.z = mag_raw.z;
|
||||
if (mag_raw.x > mag_next_max.x)
|
||||
mag_next_max.x = mag_raw.x;
|
||||
if (mag_raw.y > mag_next_max.y)
|
||||
mag_next_max.y = mag_raw.y;
|
||||
if (mag_raw.z > mag_next_max.z)
|
||||
mag_next_max.z = mag_raw.z;
|
||||
|
||||
if (mag_raw.x < mag_next_min.x) mag_next_min.x = mag_raw.x;
|
||||
if (mag_raw.y < mag_next_min.y) mag_next_min.y = mag_raw.y;
|
||||
if (mag_raw.z < mag_next_min.z) mag_next_min.z = mag_raw.z;
|
||||
if (mag_raw.x < mag_next_min.x)
|
||||
mag_next_min.x = mag_raw.x;
|
||||
if (mag_raw.y < mag_next_min.y)
|
||||
mag_next_min.y = mag_raw.y;
|
||||
if (mag_raw.z < mag_next_min.z)
|
||||
mag_next_min.z = mag_raw.z;
|
||||
|
||||
// scale our x, y and z
|
||||
if (!(mag_current_max.x - mag_current_min.x)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue