summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorAlexander Alekseev <alexander.n.alekseev@gmail.com>2018-04-09 09:28:31 +0300
committerAlexander Alekseev <alexander.n.alekseev@gmail.com>2018-04-09 09:28:31 +0300
commit6a5ed3a42b21bcae9ac772d1b9361019ed5d8676 (patch)
treec0b99fd6e309456a0d321c199aaa5717d637e20c /scene
parent0ee72fbd30b25ff397b570294c3cd2f65c176e34 (diff)
Fix RigidBody's configuration warning for Z axis
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/physics_body.cpp2
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";
}