2
0
mirror of https://github.com/godotengine/godot.git synced 2025-04-25 01:48:08 +08:00

Merge pull request from YeldhamDev/body_warning_fix

Fix wrong placement of new line in 'PhysicsBody' warning
This commit is contained in:
Rémi Verschelde 2019-07-25 17:43:18 +02:00 committed by GitHub
commit eb16c9830b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.");