Fix wrong placement of new line in 'PhysicsBody' warning

This commit is contained in:
Michael Alexsander Silva Dias 2019-07-25 11:53:54 -03:00
parent 4c74f50d1a
commit 4ff360b73b

View File

@ -370,7 +370,7 @@ String CollisionObject::get_configuration_warning() const {
String warning = Spatial::get_configuration_warning(); String warning = Spatial::get_configuration_warning();
if (shapes.empty()) { if (shapes.empty()) {
if (warning == String()) { if (!warning.empty()) {
warning += "\n\n"; 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."); 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.");