diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-07-25 17:43:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-25 17:43:18 +0200 |
commit | eb16c9830b89dd49f5f08f3f3d170d9b01fa09e0 (patch) | |
tree | af3911c5fcf78fd8de587872d8559bf46f0af1a0 | |
parent | 510bb3789e6d5a0703ddbbdd6714548db4f3d7e0 (diff) | |
parent | 4ff360b73b0b0241292c51b2358817244d277734 (diff) |
Merge pull request #30817 from YeldhamDev/body_warning_fix
Fix wrong placement of new line in 'PhysicsBody' warning
-rw-r--r-- | scene/3d/collision_object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/collision_object.cpp b/scene/3d/collision_object.cpp index 9d3e2983c4..63301fc226 100644 --- a/scene/3d/collision_object.cpp +++ b/scene/3d/collision_object.cpp @@ -370,7 +370,7 @@ String CollisionObject::get_configuration_warning() const { String warning = Spatial::get_configuration_warning(); if (shapes.empty()) { - if (warning == String()) { + if (!warning.empty()) { warning += "\n\n"; } warning += TTR("This node has no shape, so it can't collide or interact with other objects.\nConsider adding a CollisionShape or CollisionPolygon as a child to define its shape."); |