Browse Source

Fix wrong placement of new line in 'PhysicsBody' warning

Michael Alexsander Silva Dias 6 năm trước cách đây
mục cha
commit
4ff360b73b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scene/3d/collision_object.cpp

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