From 4002da96033396996dc9c947e24500cf3ccd3c3d Mon Sep 17 00:00:00 2001 From: Alexander Alekseev Date: Mon, 9 Apr 2018 09:28:31 +0300 Subject: [PATCH] Fix RigidBody's configuration warning for Z axis (cherry picked from commit 6a5ed3a42b21bcae9ac772d1b9361019ed5d8676) --- scene/3d/physics_body.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/3d/physics_body.cpp b/scene/3d/physics_body.cpp index 5c814312dd2..f0e994ac178 100644 --- a/scene/3d/physics_body.cpp +++ b/scene/3d/physics_body.cpp @@ -777,7 +777,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"; }