diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-04-09 22:01:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 22:01:13 +0200 |
commit | 07e45564340adec0d41f3038c44ccccb1521490d (patch) | |
tree | 1e41eb003e7797adc90f9b62d79ce3db9fa0538d /scene/3d | |
parent | ebeb493dc0e63013927b5c8ef684e51412709ab8 (diff) | |
parent | 6a5ed3a42b21bcae9ac772d1b9361019ed5d8676 (diff) |
Merge pull request #18080 from Alexander-Alekseev/fix_rigidbody_config_warning
Fix of RigidBody's configuration warning for Z axis
Diffstat (limited to 'scene/3d')
-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"; } |