Change return type of get_configuration_warnings to PackedStringArray

This commit is contained in:
Marc Gilleron 2022-09-19 16:43:15 +01:00
parent 908795301b
commit aed3822a93
126 changed files with 201 additions and 203 deletions

View file

@ -921,10 +921,10 @@ void RigidBody2D::_notification(int p_what) {
#endif
}
TypedArray<String> RigidBody2D::get_configuration_warnings() const {
PackedStringArray RigidBody2D::get_configuration_warnings() const {
Transform2D t = get_transform();
TypedArray<String> warnings = CollisionObject2D::get_configuration_warnings();
PackedStringArray warnings = CollisionObject2D::get_configuration_warnings();
if (ABS(t.columns[0].length() - 1.0) > 0.05 || ABS(t.columns[1].length() - 1.0) > 0.05) {
warnings.push_back(RTR("Size changes to RigidBody2D will be overridden by the physics engine when running.\nChange the size in children collision shapes instead."));