Fix RigidBody's configuration warning for Z axis

(cherry picked from commit 6a5ed3a42b)
This commit is contained in:
Alexander Alekseev 2018-04-09 09:28:31 +03:00 committed by Hein-Pieter van Braam
parent e5a17617e6
commit 4002da9603
1 changed files with 1 additions and 1 deletions

View File

@ -777,7 +777,7 @@ String RigidBody::get_configuration_warning() const {
String warning = CollisionObject::get_configuration_warning(); 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()) { if (warning != String()) {
warning += "\n"; warning += "\n";
} }