Skip to content

Commit

Permalink
Merge pull request #30817 from YeldhamDev/body_warning_fix
Browse files Browse the repository at this point in the history
Fix wrong placement of new line in 'PhysicsBody' warning
  • Loading branch information
akien-mga authored Jul 25, 2019
2 parents 510bb37 + 4ff360b commit eb16c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/3d/collision_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit eb16c98

Please sign in to comment.