diff options
author | ArrowInAKnee <gatexxl@gmail.com> | 2020-05-14 23:59:27 +0300 |
---|---|---|
committer | ArrowInAKnee <gatexxl@gmail.com> | 2020-05-16 16:07:42 +0300 |
commit | 9fc2b0fddcaeee3085e42512d7df5c39aec1368c (patch) | |
tree | afa029449af8f9b1aba62f34467a9cc62b7b14bc /scene/3d/physics_body_3d.cpp | |
parent | 00949f0c5fcc6a4f8382a4a97d5591fd9ec380f8 (diff) |
Update all get_configuration_warning to retrieve warnings from the parent
Diffstat (limited to 'scene/3d/physics_body_3d.cpp')
-rw-r--r-- | scene/3d/physics_body_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/physics_body_3d.cpp b/scene/3d/physics_body_3d.cpp index 385b4e81a8..6a03a44336 100644 --- a/scene/3d/physics_body_3d.cpp +++ b/scene/3d/physics_body_3d.cpp @@ -730,7 +730,7 @@ String RigidBody3D::get_configuration_warning() const { String warning = CollisionObject3D::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(2).length() - 1.0) > 0.05)) { - if (warning != String()) { + if (!warning.empty()) { warning += "\n\n"; } warning += TTR("Size changes to RigidBody3D (in character or rigid modes) will be overridden by the physics engine when running.\nChange the size in children collision shapes instead."); |