diff options
author | Alexander Alekseev <alexander.n.alekseev@gmail.com> | 2018-04-09 09:28:31 +0300 |
---|---|---|
committer | Alexander Alekseev <alexander.n.alekseev@gmail.com> | 2018-04-09 09:28:31 +0300 |
commit | 6a5ed3a42b21bcae9ac772d1b9361019ed5d8676 (patch) | |
tree | c0b99fd6e309456a0d321c199aaa5717d637e20c /scene | |
parent | 0ee72fbd30b25ff397b570294c3cd2f65c176e34 (diff) |
Fix RigidBody's configuration warning for Z axis
Diffstat (limited to 'scene')
-rw-r--r-- | scene/3d/physics_body.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/physics_body.cpp b/scene/3d/physics_body.cpp index ff4a807de0..9aac391d80 100644 --- a/scene/3d/physics_body.cpp +++ b/scene/3d/physics_body.cpp @@ -781,7 +781,7 @@ String RigidBody::get_configuration_warning() const { String warning = CollisionObject::get_configuration_warning(); - if ((get_mode() == MODE_RIGID || get_mode() == MODE_CHARACTER) && (ABS(t.basis.get_axis(0).length() - 1.0) > 0.05 || ABS(t.basis.get_axis(1).length() - 1.0) > 0.05 || ABS(t.basis.get_axis(0).length() - 1.0) > 0.05)) { + if ((get_mode() == MODE_RIGID || get_mode() == MODE_CHARACTER) && (ABS(t.basis.get_axis(0).length() - 1.0) > 0.05 || ABS(t.basis.get_axis(1).length() - 1.0) > 0.05 || ABS(t.basis.get_axis(2).length() - 1.0) > 0.05)) { if (warning != String()) { warning += "\n"; } |