diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-07-25 11:53:54 -0300 |
---|---|---|
committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-07-25 11:53:54 -0300 |
commit | 4ff360b73b0b0241292c51b2358817244d277734 (patch) | |
tree | 16e824e8557447f375f1ef5fab3757b28b7cb002 /scene/3d/collision_object.cpp | |
parent | 4c74f50d1adfea1ebba208b980fe85018a8bfa1c (diff) |
Fix wrong placement of new line in 'PhysicsBody' warning
Diffstat (limited to 'scene/3d/collision_object.cpp')
-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."); |