aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Alekseev2018-04-09 09:28:31 +0300
committerHein-Pieter van Braam2018-04-28 20:30:34 +0200
commit4002da96033396996dc9c947e24500cf3ccd3c3d (patch)
tree29c291851f8e180f4d257a58e29c3b08504e34a0
parente5a17617e637b8cb583043feb5b62afdf67bf599 (diff)
downloadgodot-4002da96033396996dc9c947e24500cf3ccd3c3d.tar.gz
godot-4002da96033396996dc9c947e24500cf3ccd3c3d.tar.zst
godot-4002da96033396996dc9c947e24500cf3ccd3c3d.zip
Fix RigidBody's configuration warning for Z axis
(cherry picked from commit 6a5ed3a42b21bcae9ac772d1b9361019ed5d8676)
-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 5c814312d..f0e994ac1 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";
}